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

Fires after a new post has been successfully created via the XML-RPC MovableType API.

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

add_action( 'xmlrpc_call_success_mw_newPost', 'wp_kama_xmlrpc_call_success_mw_newPost_action', 10, 2 );

/**
 * Function for `xmlrpc_call_success_mw_newPost` action-hook.
 * 
 * @param int   $post_ID ID of the new post.
 * @param array $args    An array of arguments to create the new post.
 *
 * @return void
 */
function wp_kama_xmlrpc_call_success_mw_newPost_action( $post_ID, $args ){

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

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

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

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

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

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

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