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

Fires after a post has been successfully deleted via the XML-RPC Blogger API.

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

add_action( 'xmlrpc_call_success_blogger_deletePost', 'wp_kama_xmlrpc_call_success_blogger_deletePost_action', 10, 2 );

/**
 * Function for `xmlrpc_call_success_blogger_deletePost` action-hook.
 * 
 * @param int   $post_ID ID of the deleted post.
 * @param array $args    An array of arguments to delete the post.
 *
 * @return void
 */
function wp_kama_xmlrpc_call_success_blogger_deletePost_action( $post_ID, $args ){

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

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

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

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

wp_xmlrpc_server::blogger_deletePost()
xmlrpc_call_success_blogger_deletePost
wp-includes/class-wp-xmlrpc-server.php 5278
do_action( 'xmlrpc_call_success_blogger_deletePost', $post_ID, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase

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

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