wp_xmlrpc_server_class
Filters the class used for handling XML-RPC requests.
Usage
add_filter( 'wp_xmlrpc_server_class', 'wp_kama_xmlrpc_server_class_filter' ); /** * Function for `wp_xmlrpc_server_class` filter-hook. * * @param string $class The name of the XML-RPC server class. * * @return string */ function wp_kama_xmlrpc_server_class_filter( $class ){ // filter... return $class; }
- $class(string)
- The name of the XML-RPC server class.
Changelog
Since 3.1.0 | Introduced. |
Where the hook is called
In file: /xmlrpc.php
wp_xmlrpc_server_class
xmlrpc.php 83
$wp_xmlrpc_server_class = apply_filters( 'wp_xmlrpc_server_class', 'wp_xmlrpc_server' );