Skip to content

Commit

Permalink
add action hook to attach callbacks to the newly-created resized atta…
Browse files Browse the repository at this point in the history
…chment thumbnails
  • Loading branch information
matzko committed Jun 8, 2011
1 parent 53a7e7c commit 7788980
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions filosofo-custom-image-sizes.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public function filter_image_downsize($ignore = false, $attachment_id = 0, $size


if ( ! empty( $height ) && ! empty( $width ) ) { if ( ! empty( $height ) && ! empty( $width ) ) {
$resized_path = $this->_generate_attachment($attachment_id, $width, $height, $crop); $resized_path = $this->_generate_attachment($attachment_id, $width, $height, $crop);
do_action( 'custom_image_size_resized_path', $resized_path, $attachment_id, $width, $height, $crop );
$fullsize_url = wp_get_attachment_url($attachment_id); $fullsize_url = wp_get_attachment_url($attachment_id);


$file_name = basename($resized_path); $file_name = basename($resized_path);
Expand Down

0 comments on commit 7788980

Please sign in to comment.