wp_create_thumbnail filter-hook . WP 1.2.0
Deprecated in from version 3.5.0. It is no longer supported and can be removed in future releases. Use image_resize()
instead.
Deprecated: 3.5.0 Use image_resize()
This was once used to create a thumbnail from an Image given a maximum side size.
Usage
add_filter( 'wp_create_thumbnail', 'filter_function_name_8676' ); function filter_function_name_8676( $file ){ // filter... return $file; }
- $file(mixed)
- Filename of the original image, Or attachment ID.
Changelog
Since 1.2.0 | Introduced. | |
Deprecated Since 3.5.0 | Use image_resize() |
Where the hook is called
wp_create_thumbnail
wp-admin/includes/deprecated.php 1128
return apply_filters( 'wp_create_thumbnail', image_resize( $file, $max_side, $max_side ) );