xmlrpc_call_success_mw_editPost
Fires after a post has been successfully updated via the XML-RPC MovableType API.
Использование
add_action( 'xmlrpc_call_success_mw_editPost', 'wp_kama_xmlrpc_call_success_mw_editPost_action', 10, 2 ); /** * Function for `xmlrpc_call_success_mw_editPost` action-hook. * * @param int $post_id ID of the updated post. * @param array $args An array of arguments to update the post. * * @return void */ function wp_kama_xmlrpc_call_success_mw_editPost_action( $post_id, $args ){ // action... }
- $post_id(int)
- ID of the updated post.
- $args(массив)
- An array of arguments to update the post.
Список изменений
С версии 3.4.0 | Введена. |
Где вызывается хук
xmlrpc_call_success_mw_editPost
wp-includes/class-wp-xmlrpc-server.php 6039
do_action( 'xmlrpc_call_success_mw_editPost', $post_id, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase