Is it possible to create a plugin that, when active, would add a new “function” to the XMLRPC interface and handle its calling?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In short, yes. You can add a function as either a plug-in or in your theme’s functions.php file that handles XMLRPC calls. You’ll need the following sections:
This function adds your method call to the built-in XMLRPC method handler. When someone makes a request to http://yoursite.com/xmlrpc.php with this method, all parameters will be sent to the
my_method_callback()function:I use this system to handle error reporting with my plug-ins. When one of my plug-ins malfunctions on a client’s website, it reports the malfunction by posting data to http://www.mywordpressinstallation.com/xmlrpc.php. On my site, I have a plug-in that stores this information in a database so I can review it later and fix bugs.