How do I return XML to an API post request

because you don’t return JSON, you can use admin-post.php. create a hook like that : add_action(“admin_post_nopriv_MY_PLUGIN__answer”, function () { header(“Content-type: text/xml”); echo “<abc><def>1</def></abc>”; exit(); }); and then use the url /wp-admin/admin-post.php?action=MY_PLUGIN__answer. when you do debugging, don’t forget that admin_post_nopriv only answers on unconnected users then you can open the url in another browser.

Disable XML-RPC via snippet

From the xmlrpc_enabled filter docs: Contrary to the way it’s named, this filter does not control whether XML-RPC is fully enabled, rather, it only controls whether XML-RPC methods requiring authentication – such as for publishing purposes – are enabled. To fully disable XMLRPC, you might be able to use the xmlrpc_methods filter and return an … Read more

How to create import option for xml

Sound like an interesting, but I think it would be very difficult, because content is more than just posts: Post authors for the demo content must match existing users. Taxonomies (tags, categories, nav menus) are bound to existing content. Comments need proper associations with post IDs and post types. One way to do what you … Read more

techhipbettruvabetnorabahisbahis forumutaraftarium24eduseduseduseduseduseduseduedueduedu