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 |
---|---|
639 | * Filters whether to proceed with making an image sub-size with identical dimensions |
640 | * with the original/source image. Differences of 1px may be due to rounding and are ignored. |
641 | * |
642 | * @since 5.3.0 |
643 | * |
644 | * @param bool $proceed The filtered value. |
645 | * @param int $orig_w Original image width. |
646 | * @param int $orig_h Original image height. |
647 | */ |
648 | $proceed = (bool) apply_filters( 'wp_image_resize_identical_dimensions', false, $orig_w, $orig_h ); |
649 |
|
650 | if ( ! $proceed ) { |
651 | return false; |
652 | } |
653 | } |
654 |
|
655 | // The return array matches the parameters to imagecopyresampled(). |
656 | // int dst_x, int dst_y, int src_x, int src_y, int dst_w, int dst_h, int src_w, int src_h |
657 | return array( 0, 0, (int) $s_x, (int) $s_y, (int) $new_w, (int) $new_h, (int) $crop_w, (int) $crop_h ); |