media_meta

media_meta

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('media_meta') is found 3 times:

  • /wp-admin/includes/media.php line 1679
    	 *
    	 * @param string  $media_dims The HTML markup containing the media dimensions.
    	 * @param WP_Post $post       The WP_Post attachment object.
    	 */
    	$media_dims = apply_filters( 'media_meta', $media_dims, $post );
    
    	$image_edit_button = '';
    
    	if ( wp_attachment_is_image( $post->ID ) && wp_image_editor_supports( array( 'mime_type' => $post->post_mime_type ) ) ) {
    		$nonce             = wp_create_nonce( "image_editor-$post->ID" );
    		$image_edit_button = "<input type='button' id='imgedit-open-btn-$post->ID' onclick='imageEdit.open( $post->ID, \"$nonce\" )' class='button' value='" . esc_attr__( 'Edit Image' ) . "' /> <span class='spinner'></span>";
    
  • /wp-admin/includes/media.php line 1950
    		$form_fields['image_url']
    	);
    
    	/** This filter is documented in wp-admin/includes/media.php */
    	$media_meta = apply_filters( 'media_meta', '', $post );
    
    	$defaults = array(
    		'input'         => 'text',
    		'required'      => false,
    		'value'         => '',
    		'extra_rows'    => array(),
    
  • /wp-admin/includes/media.php line 3322
    		/* translators: 1: A number of pixels wide, 2: A number of pixels tall. */
    		$media_dims .= "<span id='media-dims-$attachment_id'>" . sprintf( __( '%1$s by %2$s pixels' ), $meta['width'], $meta['height'] ) . '</span>';
    	}
    	/** This filter is documented in wp-admin/includes/media.php */
    	$media_dims = apply_filters( 'media_meta', $media_dims, $post );
    
    	$att_url = wp_get_attachment_url( $attachment_id );
    
    	$author = new WP_User( $post->post_author );
    
    	$uploaded_by_name = __( '(no author)' );