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