jetpack_xmlrpc_unauthenticated_methods

Filters the XML-RPC methods available to Jetpack for unauthenticated users.

Description

apply_filters( 'jetpack_xmlrpc_unauthenticated_methods', (array) $jetpack_methods, (array) $core_methods ); 

Parameters (2)

0. $jetpack_methods (array)
XML-RPC methods available to the Jetpack Server.
1. $core_methods (array)
Available core XML-RPC methods.

Usage

To run the hook, copy the example below.
  1. $jetpack_methods = apply_filters( 'jetpack_xmlrpc_unauthenticated_methods', $jetpack_methods, $core_methods ); 
  2.  
  3. if ( !empty( $jetpack_methods ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the jetpack_xmlrpc_unauthenticated_methods callback 
  2. function filter_jetpack_xmlrpc_unauthenticated_methods( $jetpack_methods, $core_methods ) { 
  3. // make filter magic happen here... 
  4. return $jetpack_methods
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'jetpack_xmlrpc_unauthenticated_methods', 'filter_jetpack_xmlrpc_unauthenticated_methods', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'jetpack_xmlrpc_unauthenticated_methods', 'filter_jetpack_xmlrpc_unauthenticated_methods', 10, 2 ); 

Defined (1)

The filter is defined in the following location(s).

/class.jetpack-xmlrpc-server.php  
  1. return apply_filters( 'jetpack_xmlrpc_unauthenticated_methods', $jetpack_methods, $core_methods );