Filters the default post query fields used by the given XML-RPC method.
$fieldsarray$methodstringwp-includes/class-wp-xmlrpc-server.php:1923wp_xmlrpc_server::wp_getPost()wp-includes/class-wp-xmlrpc-server.php:1984wp_xmlrpc_server::wp_getPosts() * @since 3.4.0 * * @param array $fields An array of post fields to retrieve. By default, * contains 'post', 'terms', and 'custom_fields'. * @param string $method Method name. */ $fields = apply_filters( 'xmlrpc_default_post_fields', array( 'post', 'terms', 'custom_fields' ), 'wp.getPost' ); } $user = $this->login( $username, $password ); if ( ! $user ) { return $this->error; }Introduced in 3.4.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.