WordPress at a glance
filter is not described

xmlrpc_prepare_post_type filter-hook . WP 3.4.0

Filters XML-RPC-prepared date for the given post type.


add_filter( 'xmlrpc_prepare_post_type', 'filter_function_name_4788', 10, 2 );
function filter_function_name_4788( $_post_type, $post_type ){
	// filter...

	return $_post_type;
An array of post type data.
Post type object.


  • Since 4.6.0 Converted the $post_type parameter to accept a WP_Post_Type object.

Where the hook is called

wp-includes/class-wp-xmlrpc-server.php 988
return apply_filters( 'xmlrpc_prepare_post_type', $_post_type, $post_type );

Where the hook is used (in WP core)

Does not used.