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 |
---|---|
81 |
|
82 | submit_button( __('Confirm Deletion'), 'delete' ); |
83 | ?> |
84 | </form> |
85 | <?php |
86 | return true; |
87 | } |
88 |
|
89 | if ( isset( $_GET['action'] ) ) { |
90 | do_action( 'wpmuadminedit' , '' ); |
91 |
|
92 | switch ( $_GET['action'] ) { |
93 | case 'deleteuser': |
94 | if ( ! current_user_can( 'manage_network_users' ) ) |
95 | wp_die( __( 'You do not have permission to access this page.' ) ); |
96 |
|
97 | check_admin_referer( 'deleteuser' ); |
98 |
|
99 | $id = intval( $_GET['id'] ); |