site_icon_image_sizes WordPress Filter Hook

The site_icon_image_sizes hook allows you to specify the sizes of the images that should be used for the site icon. This can be useful if you want to use a different size for the mobile version of your site.

apply_filters( 'site_icon_image_sizes', int[] $site_icon_sizes ) #

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


Parameters

$site_icon_sizes

(int[])Array of sizes available for the Site Icon.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.