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 |
---|---|
1549 | return false; |
1550 | $post_id = (int) $post->ID; |
1551 | $mime = $post->post_mime_type; |
1552 | } |
1553 |
|
1554 | if ( empty($mime) ) |
1555 | return false; |
1556 |
|
1557 | $icon_dir = apply_filters( 'icon_dir', get_template_directory() . '/images' ); |
1558 | $icon_dir_uri = apply_filters( 'icon_dir_uri', get_template_directory_uri() . '/images' ); |
1559 |
|
1560 | $types = array( |
1561 | substr($mime, 0, strpos($mime, '/')), |
1562 | substr($mime, strpos($mime, '/') + 1), |
1563 | str_replace('/', '_', $mime) |
1564 | ); |
1565 |
|
1566 | $exts = array('jpg', 'gif', 'png'); |
1567 |
|