WP_Site_Icon::intermediate_image_sizes( array $sizes = array() )

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

Description Description

Parameters Parameters


(array) (Optional) List of image sizes.

Default value: array()

Top ↑

Return Return

(array) List of intermediate image sizes.

Top ↑

Source Source

File: wp-admin/includes/class-wp-site-icon.php

	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;

Top ↑

Changelog Changelog

Version Description
4.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.