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 |
---|---|
366 | * @param int $totalpages Number of pages. |
367 | */ |
368 | function display_themes($themes, $page = 1, $totalpages = 1) { |
369 | global $themes_allowedtags; |
370 |
|
371 | $type = isset($_REQUEST['type']) ? stripslashes( $_REQUEST['type'] ) : ''; |
372 | $term = isset($_REQUEST['s']) ? stripslashes( $_REQUEST['s'] ) : ''; |
373 | ?> |
374 | <div class="tablenav"> |
375 | <div class="alignleft actions"><?php do_action('install_themes_table_header'); ?></div> |
376 | <?php |
377 | $url = esc_url($_SERVER['REQUEST_URI']); |
378 | if ( ! empty($term) ) |
379 | $url = add_query_arg('s', $term, $url); |
380 | if ( ! empty($type) ) |
381 | $url = add_query_arg('type', $type, $url); |
382 |
|
383 | $page_links = paginate_links( array( |
384 | 'base' => add_query_arg('paged', '%#%', $url), |