icon_dirs filter-hookWP 2.5.0

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_mime_type_icon()
icon_dirs
wp-includes/post.php 6937
$dirs       = apply_filters( 'icon_dirs', array( $icon_dir => $icon_dir_uri ) );

Where the hook is used in WordPress

Usage not found.