WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about xmlrpc_call

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/class-wp-xmlrpc-server.php do_action 734 /**
* Fires after the XML-RPC user has been authenticated but before the rest of
* the method logic begins.
*
* All built-in XML-RPC methods use the action xmlrpc_call, with a parameter
* equal to the method's name, e.g., wp.getUsersBlogs, wp.newPost, etc.
*
* @since 2.5.0
* @since 5.7.0 Added the `$args` and `$server` parameters.
*
* @param string $name The method name.
* @param array|string $args The escaped arguments passed to the method.
* @param wp_xmlrpc_server $server The XML-RPC server instance.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 1344 /**
* Create a new post for any registered post type.
*
* @since 3.4.0
*
* @link https://en.wikipedia.org/wiki/RSS_enclosure for information on RSS enclosures.
*
* @param array $args {
* Method arguments. Note: top-level arguments must be ordered as documented.
*
* @type int $0 Blog ID (unused).
* @type string $1 Username.
* @type string $2 Password.
* @type array $3 {
* Content struct for adding a new post. See wp_insert_post() for information on
* additional post fields
*
* @type string $post_type Post type. Default 'post'.
* @type string $post_status Post status. Default 'draft'
* @type string $post_title Post title.
* @type int $post_author Post author ID.
* @type string $post_excerpt Post excerpt.
* @type string $post_content Post content.
* @type string $post_date_gmt Post date in GMT.
* @type string $post_date Post date.
* @type string $post_password Post password (20-character limit).
* @type string $comment_status Post comment enabled status. Accepts 'open' or 'closed'.
* @type string $ping_status Post ping status. Accepts 'open' or 'closed'.
* @type bool $sticky Whether the post should be sticky. Automatically false if
* `$post_status` is 'private'.
* @type int $post_thumbnail ID of an image to use as the post thumbnail/featured image.
* @type array $custom_fields Array of meta key/value pairs to add to the post.
* @type array $terms Associative array with taxonomy names as keys and arrays
* of term IDs as values.
* @type array $terms_names Associative array with taxonomy names as keys and arrays
* of term names as values.
* @type array $enclosure {
* Array of feed enclosure data to add to post meta.
*
* @type string $url URL for the feed enclosure.
* @type int $length Size in bytes of the enclosure.
* @type string $type Mime-type for the enclosure.
* }
* }
* }
* @return int|IXR_Error Post ID on success, IXR_Error instance otherwise.
*/
public function wp_newPost( $args ) {
if ( ! $this->minimum_args( $args, 4 ) ) {
return $this->error;
}

$this->escape( $args );

$username = $args[1];
$password = $args[2];
$content_struct = $args[3];

$user = $this->login( $username, $password );
if ( ! $user ) {
return $this->error;
}

// Convert the date field back to IXR form.
if ( isset( $content_struct['post_date'] ) && ! ( $content_struct['post_date'] instanceof IXR_Date ) ) {
$content_struct['post_date'] = $this->_convert_date( $content_struct['post_date'] );
}

/*
* Ignore the existing GMT date if it is empty or a non-GMT date was supplied in $content_struct,
* since _insert_post() will ignore the non-GMT date if the GMT date is set.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 1745 /**
* Edit a post for any registered post type.
*
* The $content_struct parameter only needs to contain fields that
* should be changed. All other fields will retain their existing values.
*
* @since 3.4.0
*
* @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 int $3 Post ID.
* @type array $4 Extra content arguments.
* }
* @return true|IXR_Error True on success, IXR_Error on failure.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 1828 /**
* Delete a post for any registered post type.
*
* @since 3.4.0
*
* @see wp_delete_post()
*
* @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 int $3 Post ID.
* }
* @return true|IXR_Error True on success, IXR_Error instance on failure.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 1928 /**
* 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 do_action 1989 /**
* 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.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 2088 /**
* Create a new term.
*
* @since 3.4.0
*
* @see wp_insert_term()
*
* @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 Content struct for adding a new term. The struct must contain
* the term 'name' and 'taxonomy'. Optional accepted values include
* 'parent', 'description', and 'slug'.
* }
* @return int|IXR_Error The term ID on success, or an IXR_Error object on failure.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 2193 /**
* Edit a term.
*
* @since 3.4.0
*
* @see wp_update_term()
*
* @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 int $3 Term ID.
* @type array $4 Content struct for editing a term. The struct must contain the
* term 'taxonomy'. Optional accepted values include 'name', 'parent',
* 'description', and 'slug'.
* }
* @return true|IXR_Error True on success, IXR_Error instance on failure.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 2309 /**
* Delete a term.
*
* @since 3.4.0
*
* @see wp_delete_term()
*
* @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 string $3 Taxonomy name.
* @type int $4 Term ID.
* }
* @return true|IXR_Error True on success, IXR_Error instance on failure.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 2388 /**
* Retrieve a term.
*
* @since 3.4.0
*
* @see get_term()
*
* @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 string $3 Taxonomy name.
* @type int $4 Term ID.
* }
* @return array|IXR_Error IXR_Error on failure, array on success, containing:
* - 'term_id'
* - 'name'
* - 'slug'
* - 'term_group'
* - 'term_taxonomy_id'
* - 'taxonomy'
* - 'description'
* - 'parent'
* - 'count'
*/
wp-includes/class-wp-xmlrpc-server.php do_action 2453 /**
* Retrieve all terms for a taxonomy.
*
* @since 3.4.0
*
* The optional $filter parameter modifies the query used to retrieve terms.
* Accepted keys are 'number', 'offset', 'orderby', 'order', 'hide_empty', and 'search'.
*
* @see get_terms()
*
* @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 string $3 Taxonomy name.
* @type array $4 Optional. Modifies the query used to retrieve posts. Accepts 'number',
* 'offset', 'orderby', 'order', 'hide_empty', and 'search'. Default empty array.
* }
* @return array|IXR_Error An associative array of terms data on success, IXR_Error instance otherwise.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 2559 /**
* Filters the taxonomy query fields used by the given XML-RPC method.
*
* @since 3.4.0
*
* @param array $fields An array of taxonomy fields to retrieve.
* @param string $method The method name.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 2617 /**
* Retrieve all taxonomies.
*
* @since 3.4.0
*
* @see get_taxonomies()
*
* @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. An array of arguments for retrieving taxonomies.
* @type array $4 Optional. The subset of taxonomy fields to return.
* }
* @return array|IXR_Error An associative array of taxonomy data with returned fields determined
* by `$fields`, or an IXR_Error instance on failure.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 2703 /**
* Filters the default user query fields used by the given XML-RPC method.
*
* @since 3.5.0
*
* @param array $fields User query fields for given method. Default 'all'.
* @param string $method The method name.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 2766 /**
* Retrieve users.
*
* The optional $filter parameter modifies the query used to retrieve users.
* Accepted keys are 'number' (default: 50), 'offset' (default: 0), 'role',
* 'who', 'orderby', and 'order'.
*
* The optional $fields parameter specifies what fields will be included
* in the response array.
*
* @uses get_users()
* @see wp_getUser() for more on $fields and return 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. Arguments for the user query.
* @type array $4 Optional. Fields to return.
* }
* @return array|IXR_Error users data
*/
wp-includes/class-wp-xmlrpc-server.php do_action 2846 /**
* Retrieve information about the requesting user.
*
* @uses get_userdata()
*
* @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. Fields to return.
* }
* @return array|IXR_Error (@see wp_getUser)
*/
wp-includes/class-wp-xmlrpc-server.php do_action 2896 /**
* Edit user's profile.
*
* @uses wp_update_user()
*
* @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 Content struct. It can optionally contain:
* - 'first_name'
* - 'last_name'
* - 'website'
* - 'display_name'
* - 'nickname'
* - 'nicename'
* - 'bio'
* }
* @return true|IXR_Error True, on success.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 2985 /**
* Retrieve page.
*
* @since 2.2.0
*
* @param array $args {
* Method arguments. Note: arguments must be ordered as documented.
*
* @type int $0 Blog ID (unused).
* @type int $1 Page ID.
* @type string $2 Username.
* @type string $3 Password.
* }
* @return array|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 3028 /**
* Retrieve Pages.
*
* @since 2.2.0
*
* @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 int $3 Optional. Number of pages. Default 10.
* }
* @return array|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 3083 /**
* Create new page.
*
* @since 2.2.0
*
* @see wp_xmlrpc_server::mw_newPost()
*
* @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 Content struct.
* }
* @return int|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 3120 /**
* Delete page.
*
* @since 2.2.0
*
* @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 int $3 Page ID.
* }
* @return true|IXR_Error True, if success.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 3187 /**
* Edit page.
*
* @since 2.2.0
*
* @param array $args {
* Method arguments. Note: arguments must be ordered as documented.
*
* @type int $0 Blog ID (unused).
* @type int $1 Page ID.
* @type string $2 Username.
* @type string $3 Password.
* @type string $4 Content.
* @type int $5 Publish flag. 0 for draft, 1 for publish.
* }
* @return array|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 3250 /**
* Retrieve page list.
*
* @since 2.2.0
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @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.
* }
* @return array|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 3311 /**
* Retrieve authors list.
*
* @since 2.2.0
*
* @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.
* }
* @return array|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 3355 /**
* Get list of all tags
*
* @since 2.7.0
*
* @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.
* }
* @return array|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 3405 /**
* Create new category.
*
* @since 2.2.0
*
* @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 Category.
* }
* @return int|IXR_Error Category ID.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 3488 /**
* Remove category.
*
* @since 2.5.0
*
* @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 int $3 Category ID.
* }
* @return bool|IXR_Error See wp_delete_term() for return info.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 3545 /**
* Retrieve category list.
*
* @since 2.2.0
*
* @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 Category
* @type int $4 Max number of results.
* }
* @return array|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 3591 /**
* Retrieve comment.
*
* @since 2.7.0
*
* @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 int $3 Comment ID.
* }
* @return array|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 3644 /**
* Retrieve comments.
*
* Besides the common blog_id (unused), username, and password arguments, it takes a filter
* array as last argument.
*
* Accepted 'filter' keys are 'status', 'post_id', 'offset', and 'number'.
*
* The defaults are as follows:
* - 'status' - Default is ''. Filter by status (e.g., 'approve', 'hold')
* - 'post_id' - Default is ''. The post where the comment is posted. Empty string shows all comments.
* - 'number' - Default is 10. Total number of media items to retrieve.
* - 'offset' - Default is 0. See WP_Query::query() for more.
*
* @since 2.7.0
*
* @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. Query arguments.
* }
* @return array|IXR_Error Contains a collection of comments. See wp_xmlrpc_server::wp_getComment() for a description of each item contents
*/
wp-includes/class-wp-xmlrpc-server.php do_action 3739 /**
* Delete a comment.
*
* By default, the comment will be moved to the Trash instead of deleted.
* See wp_delete_comment() for more information on this behavior.
*
* @since 2.7.0
*
* @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 int $3 Comment ID.
* }
* @return bool|IXR_Error See wp_delete_comment().
*/
wp-includes/class-wp-xmlrpc-server.php do_action 3807 /**
* Edit comment.
*
* Besides the common blog_id (unused), username, and password arguments, it takes a
* comment_id integer and a content_struct array as last argument.
*
* The allowed keys in the content_struct array are:
* - 'author'
* - 'author_url'
* - 'author_email'
* - 'content'
* - 'date_created_gmt'
* - 'status'. Common statuses are 'approve', 'hold', 'spam'. See get_comment_statuses() for more details
*
* @since 2.7.0
*
* @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 int $3 Comment ID.
* @type array $4 Content structure.
* }
* @return true|IXR_Error True, on success.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 4000 /**
* Filters whether to allow anonymous comments over XML-RPC.
*
* @since 2.7.0
*
* @param bool $allow Whether to allow anonymous commenting via XML-RPC.
* Default false.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 4054 /**
* Retrieve all of the comment status.
*
* @since 2.7.0
*
* @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.
* }
* @return array|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 4096 /**
* Retrieve comment count.
*
* @since 2.5.0
*
* @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 int $3 Post ID.
* }
* @return array|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 4138 /**
* Retrieve post statuses.
*
* @since 2.5.0
*
* @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.
* }
* @return array|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 4173 /**
* Retrieve page statuses.
*
* @since 2.5.0
*
* @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.
* }
* @return array|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 4366 /**
* Retrieve a media item by ID
*
* @since 3.1.0
*
* @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 int $3 Attachment ID.
* }
* @return array|IXR_Error Associative array contains:
* - 'date_created_gmt'
* - 'parent'
* - 'link'
* - 'thumbnail'
* - 'title'
* - 'caption'
* - 'description'
* - 'metadata'
*/
wp-includes/class-wp-xmlrpc-server.php do_action 4419 /**
* Retrieves a collection of media library items (or attachments)
*
* Besides the common blog_id (unused), username, and password arguments, it takes a filter
* array as last argument.
*
* Accepted 'filter' keys are 'parent_id', 'mime_type', 'offset', and 'number'.
*
* The defaults are as follows:
* - 'number' - Default is 5. Total number of media items to retrieve.
* - 'offset' - Default is 0. See WP_Query::query() for more.
* - 'parent_id' - Default is ''. The post where the media item is attached. Empty string shows all media items. 0 shows unattached media items.
* - 'mime_type' - Default is ''. Filter by mime type (e.g., 'image/jpeg', 'application/pdf')
*
* @since 3.1.0
*
* @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 Query arguments.
* }
* @return array|IXR_Error Contains a collection of media items. See wp_xmlrpc_server::wp_getMediaItem() for a description of each item contents
*/
wp-includes/class-wp-xmlrpc-server.php do_action 4475 /**
* Retrieves a list of post formats used by the site.
*
* @since 3.1.0
*
* @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.
* }
* @return array|IXR_Error List of post formats, otherwise IXR_Error object.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 4555 /**
* Filters the default query fields used by the given XML-RPC method.
*
* @since 3.4.0
*
* @param array $fields An array of post type query fields for the given method.
* @param string $method The method name.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 4612 /**
* Retrieves a post types
*
* @since 3.4.0
*
* @see get_post_types()
*
* @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. Query arguments.
* @type array $4 Optional. Fields to fetch.
* }
* @return array|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 4682 /**
* Filters the default revision query fields used by the given XML-RPC method.
*
* @since 3.5.0
*
* @param array $field An array of revision query fields.
* @param string $method The method name.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 4756 /**
* Restore a post revision
*
* @since 3.5.0
*
* @uses wp_restore_post_revision()
*
* @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 int $3 Revision ID.
* }
* @return bool|IXR_Error false if there was an error restoring, true if success.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 4827 /**
* Retrieve blogs that user owns.
*
* Will make more sense once we support multiple blogs.
*
* @since 1.5.0
*
* @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.
* }
* @return array|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 4911 /**
* Retrieve user's data.
*
* Gives your client some info about you, so you don't have to.
*
* @since 1.5.0
*
* @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.
* }
* @return array|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 4961 /**
* Retrieve post.
*
* @since 1.5.0
*
* @param array $args {
* Method arguments. Note: arguments must be ordered as documented.
*
* @type int $0 Blog ID (unused).
* @type int $1 Post ID.
* @type string $2 Username.
* @type string $3 Password.
* }
* @return array|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 5018 /**
* Retrieve list of recent posts.
*
* @since 1.5.0
*
* @param array $args {
* Method arguments. Note: arguments must be ordered as documented.
*
* @type string $0 App key (unused).
* @type int $1 Blog ID (unused).
* @type string $2 Username.
* @type string $3 Password.
* @type int $4 Optional. Number of posts.
* }
* @return array|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 5108 /**
* Creates new post.
*
* @since 1.5.0
*
* @param array $args {
* Method arguments. Note: arguments must be ordered as documented.
*
* @type string $0 App key (unused).
* @type int $1 Blog ID (unused).
* @type string $2 Username.
* @type string $3 Password.
* @type string $4 Content.
* @type int $5 Publish flag. 0 for draft, 1 for publish.
* }
* @return int|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 5185 /**
* Edit a post.
*
* @since 1.5.0
*
* @param array $args {
* Method arguments. Note: arguments must be ordered as documented.
*
* @type int $0 Blog ID (unused).
* @type int $1 Post ID.
* @type string $2 Username.
* @type string $3 Password.
* @type string $4 Content
* @type int $5 Publish flag. 0 for draft, 1 for publish.
* }
* @return true|IXR_Error true when done.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 5259 /**
* Remove a post.
*
* @since 1.5.0
*
* @param array $args {
* Method arguments. Note: arguments must be ordered as documented.
*
* @type int $0 Blog ID (unused).
* @type int $1 Post ID.
* @type string $2 Username.
* @type string $3 Password.
* }
* @return true|IXR_Error True when post is deleted.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 5347 /**
* Create a new post.
*
* The 'content_struct' argument must contain:
* - title
* - description
* - mt_excerpt
* - mt_text_more
* - mt_keywords
* - mt_tb_ping_urls
* - categories
*
* Also, it can optionally contain:
* - wp_slug
* - wp_password
* - wp_page_parent_id
* - wp_page_order
* - wp_author_id
* - post_status | page_status - can be 'draft', 'private', 'publish', or 'pending'
* - mt_allow_comments - can be 'open' or 'closed'
* - mt_allow_pings - can be 'open' or 'closed'
* - date_created_gmt
* - dateCreated
* - wp_post_thumbnail
*
* @since 1.5.0
*
* @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 Content structure.
* @type int $4 Optional. Publish flag. 0 for draft, 1 for publish. Default 0.
* }
* @return int|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 5722 /**
* Edit a post.
*
* @since 1.5.0
*
* @param array $args {
* Method arguments. Note: arguments must be ordered as documented.
*
* @type int $0 Post ID.
* @type string $1 Username.
* @type string $2 Password.
* @type array $3 Content structure.
* @type int $4 Optional. Publish flag. 0 for draft, 1 for publish. Default 0.
* }
* @return true|IXR_Error True on success.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 6059 /**
* Retrieve post.
*
* @since 1.5.0
*
* @param array $args {
* Method arguments. Note: arguments must be ordered as documented.
*
* @type int $0 Post ID.
* @type string $1 Username.
* @type string $2 Password.
* }
* @return array|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 6200 /**
* Retrieve list of recent posts.
*
* @since 1.5.0
*
* @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 int $3 Optional. Number of posts.
* }
* @return array|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 6321 /**
* Retrieve the list of categories on a given blog.
*
* @since 1.5.0
*
* @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.
* }
* @return array|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 6382 /**
* Uploads a file, following your settings.
*
* Adapted from a patch by Johann Richard.
*
* @link http://mycvs.org/archives/2004/06/30/file-upload-to-wordpress-in-ecto/
*
* @since 1.5.0
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @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 Data.
* }
* @return array|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 6501 /**
* Retrieve the post titles of recent posts.
*
* @since 1.5.0
*
* @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 int $3 Optional. Number of posts.
* }
* @return array|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 6563 /**
* Retrieve list of all categories on blog.
*
* @since 1.5.0
*
* @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.
* }
* @return array|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 6621 /**
* Retrieve post categories.
*
* @since 1.5.0
*
* @param array $args {
* Method arguments. Note: arguments must be ordered as documented.
*
* @type int $0 Post ID.
* @type string $1 Username.
* @type string $2 Password.
* }
* @return array|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 6668 /**
* Sets categories for a post.
*
* @since 1.5.0
*
* @param array $args {
* Method arguments. Note: arguments must be ordered as documented.
*
* @type int $0 Post ID.
* @type string $1 Username.
* @type string $2 Password.
* @type array $3 Categories.
* }
* @return true|IXR_Error True on success.
*/
wp-includes/class-wp-xmlrpc-server.php do_action 6697 /**
* Retrieve an array of methods supported by this server.
*
* @since 1.5.0
*
* @return array
*/
wp-includes/class-wp-xmlrpc-server.php do_action 6709 /**
* Retrieve an empty array because we don't support per-post text filters.
*
* @since 1.5.0
*/
wp-includes/class-wp-xmlrpc-server.php do_action 6735 /**
* Retrieve trackbacks sent to a given post.
*
* @since 1.5.0
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param int $post_ID
* @return array|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 6792 /**
* Sets a post's publish status to 'publish'.
*
* @since 1.5.0
*
* @param array $args {
* Method arguments. Note: arguments must be ordered as documented.
*
* @type int $0 Post ID.
* @type string $1 Username.
* @type string $2 Password.
* }
* @return int|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 6834 /**
* Retrieves a pingback and registers it.
*
* @since 1.5.0
*
* @param array $args {
* Method arguments. Note: arguments must be ordered as documented.
*
* @type string $0 URL of page linked from.
* @type string $1 URL of page linked to.
* }
* @return string|IXR_Error
*/
wp-includes/class-wp-xmlrpc-server.php do_action 7076 /**
* Retrieve array of URLs that pingbacked the given URL.
*
* Specs on http://www.aquarionics.com/misc/archives/blogite/0198.html
*
* @since 1.5.0
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param string $url
* @return array|IXR_Error
*/

Hook Parameters

Parameter Type Name Description
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.
string $name The method name.
array|string $args The escaped arguments passed to the method.
wp_xmlrpc_server $server The XML-RPC server instance.