site_icon_image_sizes filter-hookWP 4.3.0

Filters the different dimensions that a site icon is saved in.

Usage

add_filter( 'site_icon_image_sizes', 'wp_kama_site_icon_image_sizes_filter' );

/**
 * Function for `site_icon_image_sizes` filter-hook.
 * 
 * @param int[] $site_icon_sizes Array of sizes available for the Site Icon.
 *
 * @return int[]
 */
function wp_kama_site_icon_image_sizes_filter( $site_icon_sizes ){

	// filter...
	return $site_icon_sizes;
}
$site_icon_sizes(int[])
Array of sizes available for the Site Icon.

Changelog

Since 4.3.0 Introduced.

Where the hook is called

WP_Site_Icon::additional_sizes()
site_icon_image_sizes
WP_Site_Icon::intermediate_image_sizes()
site_icon_image_sizes
wp-admin/includes/class-wp-site-icon.php 151
$this->site_icon_sizes = apply_filters( 'site_icon_image_sizes', $this->site_icon_sizes );
wp-admin/includes/class-wp-site-icon.php 187
$this->site_icon_sizes = apply_filters( 'site_icon_image_sizes', $this->site_icon_sizes );

Where the hook is used in WordPress

Usage not found.