Action hook 'xmlrpc_call_success_wp_deleteCategory'

in WP Core File wp-includes/class-wp-xmlrpc-server.php at line 3527

View Source

xmlrpc_call_success_wp_deleteCategory

Action Hook
Description
Fires after a category has been successfully deleted via XML-RPC.

Hook Information

File Location wp-includes/class-wp-xmlrpc-server.php View on GitHub
Hook Type Action
Line Number 3527

Hook Parameters

Type Name Description
int $category_id ID of the deleted category.
array $args An array of arguments to delete the category.

Usage Examples

Basic Usage
<?php
// Hook into xmlrpc_call_success_wp_deleteCategory
add_action('xmlrpc_call_success_wp_deleteCategory', 'my_custom_function', 10, 2);

function my_custom_function($category_id, $args) {
    // Your custom code here
}

Source Code Context

wp-includes/class-wp-xmlrpc-server.php:3527 - How this hook is used in WordPress core
<?php
3522  			 * @since 3.4.0
3523  			 *
3524  			 * @param int   $category_id ID of the deleted category.
3525  			 * @param array $args        An array of arguments to delete the category.
3526  			 */
3527  			do_action( 'xmlrpc_call_success_wp_deleteCategory', $category_id, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase
3528  		}
3529  
3530  		return $status;
3531  	}
3532  

PHP Documentation

<?php
/**
			 * Fires after a category has been successfully deleted via XML-RPC.
			 *
			 * @since 3.4.0
			 *
			 * @param int   $category_id ID of the deleted category.
			 * @param array $args        An array of arguments to delete the category.
			 */
Quick Info
  • Hook Type: Action
  • Parameters: 2
  • File: wp-includes/class-wp-xmlrpc-server.php
Related Hooks

Related hooks will be displayed here in future updates.