wppaste
WordPress

apply_filters( 'icon_dirs', string[] $uris )

Since
2.5.0
Filters the array of icon directory URIs.

Compatibility

WordPress
since 2.5.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$urisstring[]
Array of icon directory URIs keyed by directory absolute path.

Where this hook fires · 1

  • wp-includes/post.php:7246wp_mime_type_icon()

Source code

			 * Filters the array of icon directory URIs.			 *			 * @since 2.5.0			 *			 * @param string[] $uris Array of icon directory URIs keyed by directory absolute path.			 */			$dirs       = apply_filters( 'icon_dirs', array( $icon_dir => $icon_dir_uri ) );			$icon_files = array();			$all_icons  = array();			while ( $dirs ) {				$keys = array_keys( $dirs );				$dir  = array_shift( $keys );				$uri  = array_shift( $dirs );

Changelog

Introduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.0.4 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.