xmlrpc_methods хук-фильтр . WP 1.5.0
Filters the methods exposed by the XML-RPC server.
This filter can be used to add new methods, and remove built-in methods.
Использование
add_filter( 'xmlrpc_methods', 'filter_function_name_6985' ); function filter_function_name_6985( $methods ){ // filter... return $methods; }
- $methods(строка[])
- An array of XML-RPC methods, keyed by their methodName.
Список изменений
С версии 1.5.0 | Введена. |
Где вызывается хук
xmlrpc_methods
wp-includes/class-wp-xmlrpc-server.php 166
$this->methods = apply_filters( 'xmlrpc_methods', $this->methods );