WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
2397 | $mime = 0; |
2398 | } |
2399 | } else { |
2400 | $post_mimes[] = $mime; |
2401 | } |
2402 |
|
2403 | $icon_files = wp_cache_get('icon_files'); |
2404 |
|
2405 | if ( !is_array($icon_files) ) { |
2406 | $icon_dir = apply_filters( 'icon_dir', ABSPATH . WPINC . '/images/crystal' ); |
2407 | $icon_dir_uri = apply_filters( 'icon_dir_uri', trailingslashit(get_option('siteurl')) . WPINC . '/images/crystal' ); |
2408 | $dirs = apply_filters( 'icon_dirs', array($icon_dir => $icon_dir_uri) ); |
2409 | $icon_files = array(); |
2410 | while ( $dirs ) { |
2411 | $dir = array_shift(array_keys($dirs)); |
2412 | $uri = array_shift($dirs); |
2413 | if ( $dh = opendir($dir) ) { |
2414 | while ( false !== $file = readdir($dh) ) { |
2415 | $file = basename($file); |