xmlrpc_prepare_post
Filters XML-RPC-prepared date for the given post.
Usage
add_filter( 'xmlrpc_prepare_post', 'wp_kama_xmlrpc_prepare_post_filter', 10, 3 ); /** * Function for `xmlrpc_prepare_post` filter-hook. * * @param array $_post An array of modified post data. * @param array $post An array of post data. * @param array $fields An array of post fields. * * @return array */ function wp_kama_xmlrpc_prepare_post_filter( $_post, $post, $fields ){ // filter... return $_post; }
- $_post(array)
- An array of modified post data.
- $post(array)
- An array of post data.
- $fields(array)
- An array of post fields.
Changelog
Since 3.4.0 | Introduced. |
Where the hook is called
xmlrpc_prepare_post
wp-includes/class-wp-xmlrpc-server.php 996
return apply_filters( 'xmlrpc_prepare_post', $_post, $post, $fields );