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 |
|---|---|
| 328 | |
| 329 | $plugins = &$$plugin_array_name; |
| 330 | |
| 331 | //Paging. |
| 332 | $total_this_page = "total_{$status}_plugins"; |
| 333 | $total_this_page = $$total_this_page; |
| 334 | $plugins_per_page = get_user_option('plugins_per_page'); |
| 335 | if ( empty($plugins_per_page) ) |
| 336 | $plugins_per_page = 999; |
| 337 | $plugins_per_page = apply_filters('plugins_per_page', $plugins_per_page); |
| 338 | |
| 339 | $start = ($page - 1) * $plugins_per_page; |
| 340 | |
| 341 | $page_links = paginate_links( array( |
| 342 | 'base' => add_query_arg( 'paged', '%#%' ), |
| 343 | 'format' => '', |
| 344 | 'prev_text' => __('«'), |
| 345 | 'next_text' => __('»'), |
| 346 | 'total' => ceil($total_this_page / $plugins_per_page), |