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 |
---|---|
35 | return current_user_can('activate_plugins'); |
36 | } |
37 |
|
38 | function prepare_items() { |
39 | global $status, $plugins, $totals, $page, $orderby, $order, $s; |
40 |
|
41 | wp_reset_vars( array( 'orderby', 'order', 's' ) ); |
42 |
|
43 | $plugins = array( |
44 | 'all' => apply_filters( 'all_plugins', get_plugins() ), |
45 | 'search' => array(), |
46 | 'active' => array(), |
47 | 'inactive' => array(), |
48 | 'recently_activated' => array(), |
49 | 'upgrade' => array(), |
50 | 'mustuse' => array(), |
51 | 'dropins' => array() |
52 | ); |
53 |
|