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 |
---|---|
2653 |
|
2654 | do_action('xmlrpc_call', 'wp.deleteCategory'); |
2655 |
|
2656 | if ( !current_user_can('manage_categories') ) |
2657 | return new IXR_Error( 401, __( 'Sorry, you do not have the right to delete a category.' ) ); |
2658 |
|
2659 | $status = wp_delete_term( $category_id, 'category' ); |
2660 |
|
2661 | if( true == $status ) |
2662 | do_action( 'xmlrpc_call_success_wp_deleteCategory', $category_id, $args ); |
2663 |
|
2664 | return $status; |
2665 | } |
2666 |
|
2667 | /** |
2668 | * Retrieve category list. |
2669 | * |
2670 | * @since 2.2.0 |
2671 | * |