wppaste
WordPress

apply_filters( 'xmlrpc_methods', string[] $methods )

Since
1.5.0
Filters the methods exposed by the XML-RPC server.

Description

This filter can be used to add new methods, and remove built-in methods.

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).

Parameters

$methodsstring[]
An array of XML-RPC methods, keyed by their methodName.

Where this hook fires · 1

  • wp-includes/class-wp-xmlrpc-server.php:176wp_xmlrpc_server::__construct()

Source code

		 * This filter can be used to add new methods, and remove built-in methods.		 *		 * @since 1.5.0		 *		 * @param string[] $methods An array of XML-RPC methods, keyed by their methodName.		 */		$this->methods = apply_filters( 'xmlrpc_methods', $this->methods ); 		$this->set_is_enabled();	} 	/**	 * Sets wp_xmlrpc_server::$is_enabled property.

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.7.7 tag, 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.