xmlrpc_call_success_blogger_newPost
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 | Введена. |
Где вызывается хук
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