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 |
---|---|
470 |
|
471 | $plugins = &$$plugin_array_name; |
472 |
|
473 | // Paging. |
474 | $total_this_page = "total_{$status}_plugins"; |
475 | $total_this_page = $$total_this_page; |
476 | $plugins_per_page = (int) get_user_option( 'plugins_per_page' ); |
477 | if ( empty( $plugins_per_page ) || $plugins_per_page < 1 ) |
478 | $plugins_per_page = 999; |
479 | $plugins_per_page = apply_filters( 'plugins_per_page', $plugins_per_page ); |
480 |
|
481 | $start = ($page - 1) * $plugins_per_page; |
482 |
|
483 | $page_links = paginate_links( array( |
484 | 'base' => add_query_arg( 'paged', '%#%' ), |
485 | 'format' => '', |
486 | 'prev_text' => __('«'), |
487 | 'next_text' => __('»'), |
488 | 'total' => ceil($total_this_page / $plugins_per_page), |