intermediate_image_sizes_advanced

Advertisement

Summery Summery

Filters the image sizes automatically generated when uploading an image.

Syntax Syntax

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

Parameters Parameters

$new_sizes

(array) Associative array of image sizes to be created.

$image_meta

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

$attachment_id

(int) The attachment post ID for the image.

Source Source

File: wp-admin/includes/image.php

Advertisement

Changelog Changelog

Changelog
Version Description
5.3.0 Added the $attachment_id argument.
4.4.0 Added the $image_meta argument.
2.9.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.