xmlrpc_call_success_wp_newCategory action-hookWP 3.4.0

Fires after a new category has been successfully created via XML-RPC.

Usage

add_action( 'xmlrpc_call_success_wp_newCategory', 'wp_kama_xmlrpc_call_success_wp_newCategory_action', 10, 2 );

/**
 * Function for `xmlrpc_call_success_wp_newCategory` action-hook.
 * 
 * @param int   $cat_id ID of the new category.
 * @param array $args   An array of new category arguments.
 *
 * @return void
 */
function wp_kama_xmlrpc_call_success_wp_newCategory_action( $cat_id, $args ){

	// action...
}
$cat_id(int)
ID of the new category.
$args(array)
An array of new category arguments.

Changelog

Since 3.4.0 Introduced.

Where the hook is called

wp_xmlrpc_server::wp_newCategory()
xmlrpc_call_success_wp_newCategory
wp-includes/class-wp-xmlrpc-server.php 3466
do_action( 'xmlrpc_call_success_wp_newCategory', $cat_id, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase

Where the hook is used in WordPress

Usage not found.