WP_Site_Icon::intermediate_image_sizes

Advertisement

Summery Summery

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

Syntax Syntax

WP_Site_Icon::intermediate_image_sizes( string[] $sizes = array() )

Parameters Parameters

$sizes

(string[]) (Optional) Array of image size names.

Default value: array()

Return Return

(string[]) Array of image size names.

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;
	}

Advertisement

Changelog Changelog

Changelog
Version Description
4.3.0 Introduced.

Advertisement

Leave a Reply

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