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