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', 'action_function_name_5298', 10, 2 ); function action_function_name_5298( $post_ID, $args ){ // action... }
- $post_ID(число)
- ID of the new post.
- $args(массив)
- An array of arguments to create the new post.
Список изменений
С версии 3.4.0 | Введена. |
Где вызывается хук
xmlrpc_call_success_mw_newPost
wp-includes/class-wp-xmlrpc-server.php 5585
do_action( 'xmlrpc_call_success_mw_newPost', $post_ID, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase