xmlrpc_default_post_fields WordPress Filter Hook

The xmlrpc_default_post_fields hook allows you to specify which post fields should be included in the XML-RPC response by default. This can be useful if you want to limit the amount of data that is returned, or if you want to ensure that certain fields are always included.

apply_filters( 'xmlrpc_default_post_fields', array $fields, string $method ) #

Filters the list of post query fields used by the given XML-RPC method.


Parameters

$fields

(array)Array of post fields. Default array contains 'post', 'terms', and 'custom_fields'.

$method

(string)Method name.


Top ↑

Source

File: wp-includes/class-wp-xmlrpc-server.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More