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 |
---|---|
45 | } |
46 | $edit_custom_sizes = false; |
47 | /** |
48 | * Filters whether custom sizes are available options for image editing. |
49 | * |
50 | * @since 6.0.0 |
51 | * |
52 | * @param bool|string[] $edit_custom_sizes True if custom sizes can be edited or array of custom size names. |
53 | */ |
54 | $edit_custom_sizes = apply_filters( 'edit_custom_thumbnail_sizes', $edit_custom_sizes ); |
55 | ?> |
56 | <div class="imgedit-wrap wp-clearfix"> |
57 | <div id="imgedit-panel-<?php echo $post_id; ?>"> |
58 |
|
59 | <div class="imgedit-panel-content wp-clearfix"> |
60 | <?php echo $note; ?> |
61 | <div class="imgedit-menu wp-clearfix"> |
62 | <button type="button" onclick="imageEdit.handleCropToolClick( <?php echo "$post_id, '$nonce'"; ?>, this )" class="imgedit-crop button disabled" disabled><?php esc_html_e( 'Crop' ); ?></button> |
63 | <?php |