xmlrpc_call_success_wp_deleteCategory хук-событиеWP 3.4.0

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

Использование

add_action( 'xmlrpc_call_success_wp_deleteCategory', 'wp_kama_xmlrpc_call_success_wp_deleteCategory_action', 10, 2 );

/**
 * Function for `xmlrpc_call_success_wp_deleteCategory` action-hook.
 * 
 * @param int   $category_id ID of the deleted category.
 * @param array $args        An array of arguments to delete the category.
 *
 * @return void
 */
function wp_kama_xmlrpc_call_success_wp_deleteCategory_action( $category_id, $args ){

	// action...
}
$category_id(int)
ID of the deleted category.
$args(массив)
An array of arguments to delete the category.

Список изменений

С версии 3.4.0 Введена.

Где вызывается хук

wp_xmlrpc_server::wp_deleteCategory()
xmlrpc_call_success_wp_deleteCategory
wp-includes/class-wp-xmlrpc-server.php 3496
do_action( 'xmlrpc_call_success_wp_deleteCategory', $category_id, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase

Где используется хук в WordPress

Использование не найдено.