wp_calculate_image_sizes

wp_calculate_image_sizes

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('wp_calculate_image_sizes') is found 1 times:

  • /wp-includes/media.php line 1607
    	 * @param string|null  $image_src     The URL to the image file or null.
    	 * @param array|null   $image_meta    The image meta data as returned by wp_get_attachment_metadata() or null.
    	 * @param int          $attachment_id Image attachment ID of the original image or 0.
    	 */
    	return apply_filters( 'wp_calculate_image_sizes', $sizes, $size, $image_src, $image_meta, $attachment_id );
    }
    
    /**
     * Determines if the image meta data is for the image source file.
     *
     * The image meta data is retrieved by attachment post ID. In some cases the post IDs may change.
    

See this hook used in plugins: