site_icon_image_sizes
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
site_icon_image_sizes
site_icon_image_sizes
wp-admin/includes/class-wp-site-icon.php 155
$this->site_icon_sizes = apply_filters( 'site_icon_image_sizes', $this->site_icon_sizes );
wp-admin/includes/class-wp-site-icon.php 191
$this->site_icon_sizes = apply_filters( 'site_icon_image_sizes', $this->site_icon_sizes );