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 |
|---|---|
| 549 | * |
| 550 | * @param null|mixed $null Whether to preempt output of the resize dimensions. |
| 551 | * @param int $orig_w Original width in pixels. |
| 552 | * @param int $orig_h Original height in pixels. |
| 553 | * @param int $dest_w New width in pixels. |
| 554 | * @param int $dest_h New height in pixels. |
| 555 | * @param bool|array $crop Whether to crop image to specified width and height or resize. |
| 556 | * An array can specify positioning of the crop area. Default false. |
| 557 | */ |
| 558 | $output = apply_filters( 'image_resize_dimensions', null, $orig_w, $orig_h, $dest_w, $dest_h, $crop ); |
| 559 | |
| 560 | if ( null !== $output ) { |
| 561 | return $output; |
| 562 | } |
| 563 | |
| 564 | // Stop if the destination size is larger than the original image dimensions. |
| 565 | if ( empty( $dest_h ) ) { |
| 566 | if ( $orig_w < $dest_w ) { |
| 567 | return false; |