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

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

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

add_action( 'xmlrpc_call_success_blogger_newPost', 'wp_kama_xmlrpc_call_success_blogger_newPost_action', 10, 2 );

/**
 * Function for `xmlrpc_call_success_blogger_newPost` action-hook.
 * 
 * @param int   $post_id ID of the new post.
 * @param array $args    An array of new post arguments.
 *
 * @return void
 */
function wp_kama_xmlrpc_call_success_blogger_newPost_action( $post_id, $args ){

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

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

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

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

wp_xmlrpc_server::blogger_newPost()
xmlrpc_call_success_blogger_newPost
wp-includes/class-wp-xmlrpc-server.php 5166
do_action( 'xmlrpc_call_success_blogger_newPost', $post_id, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase

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

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