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 |
---|---|
43 | return current_user_can('activate_plugins'); |
44 | } |
45 |
|
46 | function prepare_items() { |
47 | global $status, $plugins, $totals, $page, $orderby, $order, $s; |
48 |
|
49 | wp_reset_vars( array( 'orderby', 'order', 's' ) ); |
50 |
|
51 | $plugins = array( |
52 | 'all' => apply_filters( 'all_plugins', get_plugins() ), |
53 | 'search' => array(), |
54 | 'active' => array(), |
55 | 'inactive' => array(), |
56 | 'recently_activated' => array(), |
57 | 'upgrade' => array(), |
58 | 'mustuse' => array(), |
59 | 'dropins' => array() |
60 | ); |
61 |
|