xmlrpc_default_posttype_fields WordPress Filter Hook
The xmlrpc_default_posttype_fields hook allows you to add or remove fields from the default list of fields that are returned when getPost and getPosts are called via the XML-RPC interface. This is useful for adding or removing fields that are not needed for your specific implementation.
apply_filters( 'xmlrpc_default_posttype_fields', array $fields , string $method ) #
Filters the default query fields used by the given XML-RPC method.
Parameters
- $fields
(array)An array of post type query fields for the given method.
- $method
(string)The method name.
Source
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |