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 |
---|---|
49 | return true; |
50 | } |
51 |
|
52 | function prepare_items() { |
53 | global $status, $totals, $page, $orderby, $order, $s; |
54 |
|
55 | wp_reset_vars( array( 'orderby', 'order', 's' ) ); |
56 |
|
57 | $themes = array( |
58 | 'all' => apply_filters( 'all_themes', wp_get_themes() ), |
59 | 'search' => array(), |
60 | 'enabled' => array(), |
61 | 'disabled' => array(), |
62 | 'upgrade' => array(), |
63 | 'broken' => $this->is_site_themes ? array() : wp_get_themes( array( 'errors' => true ) ), |
64 | ); |
65 |
|
66 | if ( $this->is_site_themes ) { |
67 | $themes_per_page = $this->get_items_per_page( 'site_themes_network_per_page' ); |