| 1 |
<?php |
| 2 |
// If you're here wondering why we're building our own API |
| 3 |
// instead of using the WP REST API... we're doing it this way |
| 4 |
// so that we can actually troubleshoot issues when the WP API |
| 5 |
// is down (like a fatal/white-screen error for example) |
| 6 |
// |
| 7 |
// We're still doing things safely, we connect to the DB directly |
| 8 |
// authenticate requests, use nonces, and all that good stuff :) |
| 9 |
|
| 10 |
// Initialization |
| 11 |
require_once dirname( __FILE__ ) . '/troubleshoot.php'; |
| 12 |
$app = pd_troubleshoot(); |
| 13 |
$api = $app->api->process_request(); |