icon_dirs
Filters the array of icon directory URIs.
Usage
add_filter( 'icon_dirs', 'wp_kama_icon_dirs_filter' ); /** * Function for `icon_dirs` filter-hook. * * @param string[] $uris Array of icon directory URIs keyed by directory absolute path. * * @return string[] */ function wp_kama_icon_dirs_filter( $uris ){ // filter... return $uris; }
- $uris(string[])
- Array of icon directory URIs keyed by directory absolute path.
Changelog
Since 2.5.0 | Introduced. |
Where the hook is called
wp-includes/post.php 6937
$dirs = apply_filters( 'icon_dirs', array( $icon_dir => $icon_dir_uri ) );