apply_filters( ‘xmlrpc_prepare_post_type’, array $_post_type, WP_Post_Type $post_type )

In this article

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

Parameters

$_post_typearray
An array of post type data.
$post_typeWP_Post_Type
Post type object.

Source

return apply_filters( 'xmlrpc_prepare_post_type', $_post_type, $post_type );

Changelog

VersionDescription
4.6.0Converted the $post_type parameter to accept a WP_Post_Type object.
3.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.