WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about xmlrpc_default_post_fields

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/class-wp-xmlrpc-server.php apply_filters 1919 /**
* Filters the list of post query fields used by the given XML-RPC method.
*
* @since 3.4.0
*
* @param array $fields Array of post fields. Default array contains 'post', 'terms', and 'custom_fields'.
* @param string $method Method name.
*/
wp-includes/class-wp-xmlrpc-server.php apply_filters 1980 /**
* Retrieve posts.
*
* @since 3.4.0
*
* @see wp_get_recent_posts()
* @see wp_getPost() for more on `$fields`
* @see get_posts() for more on `$filter` values
*
* @param array $args {
* Method arguments. Note: arguments must be ordered as documented.
*
* @type int $0 Blog ID (unused).
* @type string $1 Username.
* @type string $2 Password.
* @type array $3 Optional. Modifies the query used to retrieve posts. Accepts 'post_type',
* 'post_status', 'number', 'offset', 'orderby', 's', and 'order'.
* Default empty array.
* @type array $4 Optional. The subset of post type fields to return in the response array.
* }
* @return array|IXR_Error Array contains a collection of posts.
*/

Hook Parameters

Parameter Type Name Description
array $fields Array of post fields. Default array contains 'post', 'terms', and 'custom_fields'.
string $method Method name.
array $fields Array of post fields. Default array contains 'post', 'terms', and 'custom_fields'.
string $method Method name.