Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: media_meta

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1187                unset($form_fields['menu_order']);
1188                break;
1189           }
1190      }
1191
1192      $media_dims = '';
1193      $meta = wp_get_attachment_metadata($post->ID);
1194      if ( is_array($meta) && array_key_exists('width', $meta) && array_key_exists('height', $meta) )
1195           $media_dims .= "<span id='media-dims-{$post->ID}'>{$meta['width']}&nbsp;&times;&nbsp;{$meta['height']}</span> ";
1196      $media_dims = apply_filters('media_meta', $media_dims, $post);
1197
1198      $image_edit_button = '';
1199      if ( gd_edit_image_support($post->post_mime_type) ) {
1200           $nonce = wp_create_nonce("image_editor-$post->ID");
1201           $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' ) . "' /> <img src='images/wpspin_light.gif' class='imgedit-wait-spin' alt='' />";
1202      }
1203
1204      $item = "
1205      $type_html