xmlrpc_call, wp.deleteCategory, $args, $this

xmlrpc_call, wp.deleteCategory, $args, $this

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: 7.0.3

do_action('xmlrpc_call, wp.deleteCategory, $args, $this') is found 1 times:

  • /wp-includes/class-wp-xmlrpc-server.php line 3515
    			return $this->error;
    		}
    
    		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
    		do_action( 'xmlrpc_call', 'wp.deleteCategory', $args, $this );
    
    		if ( ! current_user_can( 'delete_term', $category_id ) ) {
    			return new IXR_Error( 401, __( 'Sorry, you are not allowed to delete this category.' ) );
    		}
    
    		$status = wp_delete_term( $category_id, 'category' );