media_meta

media_meta

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('media_meta') is found 3 times:

  • /wp-admin/includes/media.php line 1679
    1675
    1676
    1677
    1678
    1679
    1680
    1681
    1682
    1683
    1684
    1685
    *
     * @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
    1946
    1947
    1948
    1949
    1950
    1951
    1952
    1953
    1954
    1955
    1956
        $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
    3318
    3319
    3320
    3321
    3322
    3323
    3324
    3325
    3326
    3327
    3328
        /* 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)' );