Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: xmlrpc_call_success_wp_deleteCategory

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

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