A quick remote audit of your WordPress site via AJAX. Returns information about the core, plugins, and themes.
Ever want to check the WordPress settings of your site without logging in?
WP-AJAX-Audit is a simple plugin that allows you to send an AJAX request (from a remote server) to retrieve information about your site. Quickly find things like core settings, plugins/themes installed, and much more.
After installing, browse to Tools > WP AJAX Audit to find your access key, and to generate an example script.
The request must be made with Post parameters (An "action" which is set to "wp_ajax_audit" and the "wp_ajax_audit_access_key")
Here is an example:
<?php //open connection $ch = curl_init(); //find the admin-ajax.php url $wp_admin_ajax_url = 'http://www.example.com/wp-admin/admin-ajax.php'; //assemble the POST parameters $fields_string = 'action=wp_ajax_audit' . '&wp_ajax_audit_access_key=abcdefg123456'; //set the url, number of POST vars, POST data curl_setopt($ch,CURLOPT_URL, $url); curl_setopt($ch,CURLOPT_POST, 2); curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string); //execute post $result = curl_exec($ch); //close connection curl_close($ch); ?>
If successful, $result is a json encoded version of wp_load_alloptions().
Note, you'll still need to 'unserialize(json_decode($result))' to get the array of data.