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 |
|---|---|
| 1826 | |
| 1827 | if ( !wp_match_mime_types($mime_type, $avail_post_mime_types) ) |
| 1828 | continue; |
| 1829 | |
| 1830 | if ( isset($_GET['post_mime_type']) && wp_match_mime_types($mime_type, $_GET['post_mime_type']) ) |
| 1831 | $class = ' class="current"'; |
| 1832 | |
| 1833 | $type_links[] = "<li><a href='" . esc_url(add_query_arg(array('post_mime_type'=>$mime_type, 'paged'=>false))) . "'$class>" . sprintf( translate_nooped_plural( $label[2], $num_posts[$mime_type] ), "<span id='$mime_type-counter'>" . number_format_i18n( $num_posts[$mime_type] ) . '</span>') . '</a>'; |
| 1834 | } |
| 1835 | echo implode(' | </li>', apply_filters( 'media_upload_mime_type_links', $type_links ) ) . '</li>'; |
| 1836 | unset($type_links); |
| 1837 | ?> |
| 1838 | </ul> |
| 1839 | |
| 1840 | <div class="tablenav"> |
| 1841 | |
| 1842 | <?php |
| 1843 | $page_links = paginate_links( array( |
| 1844 | 'base' => add_query_arg( 'paged', '%#%' ), |