ClassicPress logo
Skip to content
    Filter by type:

    Browse:

    • Home
    • Functions
    • wp_create_image_subsizes
    • intermediate_image_sizes_advanced

    apply_filters( 'intermediate_image_sizes_advanced', array $new_sizes, array $image_meta, int $attachment_id )

    Filters the image sizes automatically generated when uploading an image.


    Parameters

    $new_sizes

    Associative array of image sizes to be created.

    $image_meta

    The image meta data: width, height, file, sizes, etc.

    $attachment_id

    The attachment post ID for the image.


    Source

    File: wp-admin/includes/image.php

    View on GitHub


    Related

    Used By

    Used By
    Used By Description
    wp-admin/includes/image.php: wp_create_image_subsizes()

    Creates image sub-sizes, adds the new data to the image meta sizes array, and updates the image metadata.


    Changelog

    Changelog
    Version Description
    5.3.0 Added the $attachment_id argument.
    4.4.0 Added the $image_meta argument.
    2.9.0 Introduced.
    ClassicPress Documentation • Made with ClassicPress
    Privacy Policy