dklon
Forum Replies Created
-
Forum: Plugins
In reply to: XML-RPC API ExtensionsOkay, here is the Trac ticket for this particular set of enhancements for the XML-RPC API:
Forum: Plugins
In reply to: XML-RPC API ExtensionsHmm. I’ve tried logging into Trac to put the diffs up on a ticket, but it doesn’t seem to want to accept my username and password from here. Is there something else I’m missing?
Forum: Plugins
In reply to: XML-RPC API ExtensionsOkay, I’ll start putting this together in Trac as a ticket with patch.
The plugin.php modification (https://wordpress.pastebin.com/wqDu0N97) should satisfy the condition for returning the data with the extra “Active” element in the array when calling wp.getPluginList, although I wasn’t sure if making it bool instead of text like the others violated some coding rule. But every XML-RPC library seems to make the conversion to and from in the background easily.
I’ve got a ton more extensions to the API that I didn’t post since I wasn’t sure if they would be welcomed. These were the smallest to post up here. Plugin management was just one area I had to tackle for this app.
Forum: Plugins
In reply to: XML-RPC API ExtensionsHere are some of the functions that I’ve written in xmlrpc.php:
https://wordpress.pastebin.com/N4eDYfeN
The API calls come out as:
- wp.getPluginList
- wp.isPluginActive
- wp.getActivePlugins
- wp.activatePlugin
I’ve added two lines to the get_plugin_data() call in /wp-admin/includes/plugin.php for 1 more element in the return header:
https://wordpress.pastebin.com/wqDu0N97
These are just some of the plugin functions. I’ll sign up for the wp-xmlrpc list as well. XML-RPC and SOAP services are something that I work on almost daily for my own projects so I thought it would be a good fit to try this out.