wphooks.info - icon_dirs

icon_dirs

(trunk - 5.0-alpha-42716)

The hook occurs in the following file:

wp-includes/post.php:
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
			 */
			$icon_dir_uri = apply_filters( 'icon_dir_uri', includes_url( 'images/media' ) );

			/**
			 * Filters the list of icon directory URIs.
			 *
			 * @since 2.5.0
			 *
			 * @param array $uris List of icon directory URIs.
			 */
			$dirs       = apply_filters( 'icon_dirs', array( $icon_dir => $icon_dir_uri ) );
			$icon_files = array();
			while ( $dirs ) {
				$keys = array_keys( $dirs );
				$dir  = array_shift( $keys );
				$uri  = array_shift( $dirs );
				if ( $dh = opendir( $dir ) ) {
					while ( false !== $file = readdir( $dh ) ) {
						$file = basename( $file );
						if ( substr( $file, 0, 1 ) == '.' ) {