WordPress at Your Fingertips
function is not described

WP_Site_Icon::intermediate_image_sizes() public WP 4.3.0

Adds Site Icon sizes to the array of image sizes on demand.

{} It's a method of the class: WP_Site_Icon{}

Hooks from the method


String[]. Array of image size names.


$WP_Site_Icon = new WP_Site_Icon();
$WP_Site_Icon->intermediate_image_sizes( $sizes );
Array of image size names.
Default: array()


Since 4.3.0 Introduced.

Code of WP_Site_Icon::intermediate_image_sizes() WP 5.8.2

public function intermediate_image_sizes( $sizes = array() ) {
	/** This filter is documented in wp-admin/includes/class-wp-site-icon.php */
	$this->site_icon_sizes = apply_filters( 'site_icon_image_sizes', $this->site_icon_sizes );
	foreach ( $this->site_icon_sizes as $size ) {
		$sizes[] = 'site_icon-' . $size;

	return $sizes;