W3cubDocs

/WordPress

apply_filters( ‘xmlrpc_default_revision_fields’, array $field, string $method )

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

Parameters

$fieldarray
An array of revision fields to retrieve. By default, contains 'post_date' and 'post_date_gmt'.
$methodstring
The method name.

Source

$fields = apply_filters( 'xmlrpc_default_revision_fields', array( 'post_date', 'post_date_gmt' ), 'wp.getRevisions' );

Changelog

Version Description
3.5.0 Introduced.

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