xmlrpc_methods WordPress Filter Hook

The xmlrpc_methods hook allows you to add custom XML-RPC methods to your WordPress site. This hook is called when the XML-RPC server is initialized, and it gives you an opportunity to add your own methods to the server.

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

Filters the methods exposed by the XML-RPC server.


Description

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


Top ↑

Parameters

$methods

(string[])An array of XML-RPC methods, keyed by their methodName.


Top ↑

Source

File: wp-includes/class-wp-xmlrpc-server.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
1.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More