intermediate_image_sizes_advanced

intermediate_image_sizes_advanced

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('intermediate_image_sizes_advanced') is found 1 times:

  • /wp-admin/includes/image.php line 424
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
         * @param array $new_sizes     Associative array of image sizes to be created.
         * @param array $image_meta    The image meta data: width, height, file, sizes, etc.
         * @param int   $attachment_id The attachment post ID for the image.
         */
        $new_sizes = apply_filters( 'intermediate_image_sizes_advanced', $new_sizes, $image_meta, $attachment_id );
     
        return _wp_make_subsizes( $new_sizes, $file, $image_meta, $attachment_id );
    }
     
    /**
     * Low-level function to create image sub-sizes.

See this hook used in plugins:

Examples using intermediate_image_sizes_advanced