Permalink
Browse files

add action hook to attach callbacks to the newly-created resized atta…

…chment thumbnails
  • Loading branch information...
1 parent 53a7e7c commit 7788980df0836b4744ef208060024c67864326bf @matzko committed Jun 8, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 filosofo-custom-image-sizes.php
@@ -72,6 +72,7 @@ public function filter_image_downsize($ignore = false, $attachment_id = 0, $size
if ( ! empty( $height ) && ! empty( $width ) ) {
$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);
$file_name = basename($resized_path);

0 comments on commit 7788980

Please sign in to comment.