Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_create_thumbnail

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
1031  * @see image_resize()
1032  *
1033  * @param mixed $file Filename of the original image, Or attachment id.
1034  * @param int $max_side Maximum length of a single side for the thumbnail.
1035  * @param mixed $deprecated Never used.
1036  * @return string Thumbnail path on success, Error string on failure.
1037  */
1038 function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) {
1039      _deprecated_function( __FUNCTION__, '3.5', 'image_resize()' );
1040      return apply_filters( 'wp_create_thumbnail', image_resize( $file, $max_side, $max_side ) );
1041 }
1042
1043 /**
1044  * This was once used to display a metabox for the nav menu theme locations.
1045  *
1046  * Deprecated in favor of a 'Manage Locations' tab added to nav menus management screen.
1047  *
1048  * @since 3.0.0
1049  * @deprecated 3.6.0