I need to add custom methods to the Xml-Rpc file and have found the following:
// Custom plugins
add_filter('xmlrpc_methods', 'custom_xmlrpc_methods');
function custom_xmlrpc_methods($methods)
{
$methods['myMethod'] = 'my_function';
return $methods;
}
Questions:
- Is it possible to have the callback function in another file and if yes then how do you do that in the code?
- If I have lots of custom methods what is the best approach to handling this?
Thanks Michael