wppaste
WordPress

wp_xmlrpc_server

Since
1.5.0
Source
wp-includes/class-wp-xmlrpc-server.php:23
WordPress XMLRPC server implementation.

Description

Implements compatibility for Blogger API, MetaWeblog API, MovableType, and pingback. Additional WordPress API for managing comments, pages, posts, options, etc.

As of WordPress 3.5.0, XML-RPC is enabled by default. It can be disabled via the 'xmlrpc_enabled' filter found in wp_xmlrpc_server::set_is_enabled().

Compatibility

WordPress
since 1.5.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Hooks and filters fired · 113

Every hook that fires from inside wp_xmlrpc_server, in the order it appears in the class, grouped by the method that fires it.

Properties · 5

$methodsarraypublic
Methods.
$blog_optionsarraypublic
Blog options.
$errorIXR_Errorpublic
IXR_Error instance.
$auth_failedboolprotected
Flags that the user authentication has failed in this instance of wp_xmlrpc_server.
$is_enabledboolprivate
Flags that XML-RPC is enabled

Methods · 106

Source code

#[AllowDynamicProperties]class wp_xmlrpc_server extends IXR_Server {	/**	 * Methods.	 *	 * @var array	 */	public $methods; 	/**	 * Blog options.	 *	 * @var array	 */	public $blog_options; 	/**	 * IXR_Error instance.	 *	 * @var IXR_Error	 */	public $error; 	/**	 * Flags that the user authentication has failed in this instance of wp_xmlrpc_server.	 *	 * @var bool	 */	protected $auth_failed = false; 	/**	 * Flags that XML-RPC is enabled	 *	 * @var bool	 */	private $is_enabled; 	/**	 * Registers all of the XMLRPC methods that XMLRPC server understands.	 *	 * Sets up server and method property. Passes XMLRPC methods through the	 * {@see 'xmlrpc_methods'} filter to allow plugins to extend or replace	 * XML-RPC methods.	 *	 * @since 1.5.0	 */	public function __construct() {		$this->methods = array(			// WordPress API.			'wp.getUsersBlogs'                 => 'this:wp_getUsersBlogs',			'wp.newPost'                       => 'this:wp_newPost',			'wp.editPost'                      => 'this:wp_editPost',			'wp.deletePost'                    => 'this:wp_deletePost',			'wp.getPost'                       => 'this:wp_getPost',			'wp.getPosts'                      => 'this:wp_getPosts',			'wp.newTerm'                       => 'this:wp_newTerm',			'wp.editTerm'                      => 'this:wp_editTerm',			'wp.deleteTerm'                    => 'this:wp_deleteTerm',			'wp.getTerm'                       => 'this:wp_getTerm',			'wp.getTerms'                      => 'this:wp_getTerms',			'wp.getTaxonomy'                   => 'this:wp_getTaxonomy',			'wp.getTaxonomies'                 => 'this:wp_getTaxonomies',			'wp.getUser'                       => 'this:wp_getUser',			'wp.getUsers'                      => 'this:wp_getUsers',			'wp.getProfile'                    => 'this:wp_getProfile',			'wp.editProfile'                   => 'this:wp_editProfile',			'wp.getPage'                       => 'this:wp_getPage',			'wp.getPages'                      => 'this:wp_getPages',			'wp.newPage'                       => 'this:wp_newPage',			'wp.deletePage'                    => 'this:wp_deletePage',			'wp.editPage'                      => 'this:wp_editPage',			'wp.getPageList'                   => 'this:wp_getPageList',			'wp.getAuthors'                    => 'this:wp_getAuthors',			'wp.getCategories'                 => 'this:mw_getCategories',     // Alias.			'wp.getTags'                       => 'this:wp_getTags',			'wp.newCategory'                   => 'this:wp_newCategory',			'wp.deleteCategory'                => 'this:wp_deleteCategory',			'wp.suggestCategories'             => 'this:wp_suggestCategories',			'wp.uploadFile'                    => 'this:mw_newMediaObject',    // Alias.			'wp.deleteFile'                    => 'this:wp_deletePost',        // Alias.

Changelog

Introduced in 1.5.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.9.7 tag, from src/wp-includes/class-wp-xmlrpc-server.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.