WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
1092 | unset( $form_fields['menu_order'] ); |
1093 | break; |
1094 | } |
1095 | } |
1096 |
|
1097 | $media_dims = ''; |
1098 | $meta = wp_get_attachment_metadata( $post->ID ); |
1099 | if ( is_array( $meta ) && array_key_exists( 'width', $meta ) && array_key_exists( 'height', $meta ) ) |
1100 | $media_dims .= "<span id='media-dims-$post->ID'>{$meta['width']} × {$meta['height']}</span> "; |
1101 | $media_dims = apply_filters( 'media_meta', $media_dims, $post ); |
1102 |
|
1103 | $image_edit_button = ''; |
1104 | if ( gd_edit_image_support( $post->post_mime_type ) ) { |
1105 | $nonce = wp_create_nonce( "image_editor-$post->ID" ); |
1106 | $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='" . esc_url( admin_url( 'images/wpspin_light.gif' ) ) . "' class='imgedit-wait-spin' alt='' />"; |
1107 | } |
1108 |
|
1109 | $attachment_url = get_permalink( $attachment_id ); |
1110 |
|