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

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

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

add_action( 'xmlrpc_call_success_wp_deletePage', 'wp_kama_xmlrpc_call_success_wp_deletePage_action', 10, 2 );

/**
 * Function for `xmlrpc_call_success_wp_deletePage` action-hook.
 * 
 * @param int   $page_id ID of the deleted page.
 * @param array $args    An array of arguments to delete the page.
 *
 * @return void
 */
function wp_kama_xmlrpc_call_success_wp_deletePage_action( $page_id, $args ){

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

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

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

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

wp_xmlrpc_server::wp_deletePage()
xmlrpc_call_success_wp_deletePage
wp-includes/class-wp-xmlrpc-server.php 3139
do_action( 'xmlrpc_call_success_wp_deletePage', $page_id, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase

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

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