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 |
---|---|
1105 | * @see image_resize() |
1106 | * |
1107 | * @param mixed $file Filename of the original image, Or attachment id. |
1108 | * @param int $max_side Maximum length of a single side for the thumbnail. |
1109 | * @param mixed $deprecated Never used. |
1110 | * @return string Thumbnail path on success, Error string on failure. |
1111 | */ |
1112 | function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) { |
1113 | _deprecated_function( __FUNCTION__, '3.5', 'image_resize()' ); |
1114 | return apply_filters( 'wp_create_thumbnail', image_resize( $file, $max_side, $max_side ) ); |
1115 | } |
1116 |
|
1117 | /** |
1118 | * This was once used to display a metabox for the nav menu theme locations. |
1119 | * |
1120 | * Deprecated in favor of a 'Manage Locations' tab added to nav menus management screen. |
1121 | * |
1122 | * @since 3.0.0 |
1123 | * @deprecated 3.6.0 |