xmlrpc_call_success_mw_newPost action-hookWP 3.4.0

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

Usage

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(array)
An array of arguments to create the new post.

Changelog

Since 3.4.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.