wp_xmlrpc_server::wp_getPosts( array $args )
Retrieves posts.
Description
See also
wp_getPost(): for more on
$fields
get_posts(): for more on
$filter
values
Parameters
- $args
-
(Required) Method arguments. Note: arguments must be ordered as documented.<br>
- (int) Blog ID (unused).<br>
- '1'
(string) Username.<br> - '2'
(string) Password.<br> - '3'
(array) Optional. Modifies the query used to retrieve posts. Accepts 'post_type', 'post_status', 'number', 'offset', 'orderby', 's', and 'order'.<br> Default empty array.<br> - '4'
(array) Optional. The subset of post type fields to return in the response array.<br>
Return
(array|IXR_Error) Array contains a collection of posts.
Source
File: wp-includes/class-wp-xmlrpc-server.php
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |