xmlrpc_prepare_page
Filters XML-RPC-prepared data for the given page.
Usage
add_filter( 'xmlrpc_prepare_page', 'wp_kama_xmlrpc_prepare_page_filter', 10, 2 ); /** * Function for `xmlrpc_prepare_page` filter-hook. * * @param array $_page An array of page data. * @param WP_Post $page Page object. * * @return array */ function wp_kama_xmlrpc_prepare_page_filter( $_page, $page ){ // filter... return $_page; }
- $_page(array)
- An array of page data.
- $page(WP_Post)
- Page object.
Changelog
Since 3.4.0 | Introduced. |
Where the hook is called
xmlrpc_prepare_page
wp-includes/class-wp-xmlrpc-server.php 1169
return apply_filters( 'xmlrpc_prepare_page', $_page, $page );