wphooks.info - icon_dirs

icon_dirs

(trunk - 5.0-alpha-43293)

The hook occurs in the following file:

wp-includes/post.php:
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
			 */
			$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 ) == '.' ) {