media_submitbox_misc_sections

media_submitbox_misc_sections

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('media_submitbox_misc_sections') is found 1 times:

  • /wp-admin/includes/media.php line 3434
    		 *
    		 * @param array   $fields An array of the attachment metadata keys and labels.
    		 * @param WP_Post $post   WP_Post object for the current attachment.
    		 */
    		$fields = apply_filters( 'media_submitbox_misc_sections', $fields, $post );
    
    		foreach ( $fields as $key => $label ) {
    			if ( empty( $meta[ $key ] ) ) {
    				continue;
    			}