W3cubDocs

/WordPress

apply_filters( ‘xmlrpc_default_posttype_fields’, array $fields, string $method )

Filters the default post type query fields used by the given XML-RPC method.

Parameters

$fieldsarray
An array of post type fields to retrieve. By default, contains 'labels', 'cap', and 'taxonomies'.
$methodstring
The method name.

Source

$fields = apply_filters( 'xmlrpc_default_posttype_fields', array( 'labels', 'cap', 'taxonomies' ), 'wp.getPostType' );

Changelog

Version Description
3.4.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/xmlrpc_default_posttype_fields