HEX
Server: Apache
System: Linux 4485441ca2e2 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 11:03:07 UTC 2025 aarch64
User: (1000)
PHP: 8.2.24
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/json-rest-api/lib/wp-json.php
<?php
/**
 * JSON API support for WordPress
 *
 * @package WordPress
 */

/**
 * Whether this is a XMLRPC Request
 *
 * @var bool
 * @todo Remove me in favour of JSON_REQUEST
 */
define( 'XMLRPC_REQUEST', true );

/**
 * Whether this is a JSON Request
 *
 * @var bool
 */
define( 'JSON_REQUEST', true );

/** Include the bootstrap for setting up WordPress environment */
include( './wp-load.php' );

include_once( ABSPATH . 'wp-admin/includes/admin.php' );
include_once( ABSPATH . WPINC . '/class-wp-xmlrpc-server.php' );
include_once( ABSPATH . WPINC . '/class-wp-json-datetime.php' );
include_once( ABSPATH . WPINC . '/class-wp-json-server.php' );

// Allow for a plugin to insert a different class to handle requests.
$wp_json_server_class = apply_filters( 'wp_json_server_class', 'WP_JSON_Server' );

$wp_json_server = new $wp_json_server_class;

// Fire off the request
$wp_json_server->serve_request();

exit;