PHP 8.2.31
Preview: module.php Size: 1.19 KB
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/elementor/modules/wp-rest/module.php

<?php

namespace Elementor\Modules\WpRest;

use Elementor\Core\Base\Module as BaseModule;
use Elementor\Modules\WpRest\Classes\Design_System_REST_API;
use Elementor\Modules\WpRest\Classes\Elementor_Post_Meta;
use Elementor\Modules\WpRest\Classes\Elementor_Settings;
use Elementor\Modules\WpRest\Classes\Elementor_User_Meta;
use Elementor\Modules\WpRest\Classes\Post_Query;
use Elementor\Modules\WpRest\Classes\Term_Query;
use Elementor\Modules\WpRest\Classes\User_Query;
use Elementor\Plugin;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class Module extends BaseModule {

	public function get_name() {
		return 'wp-rest';
	}

	public function __construct() {
		parent::__construct();

		add_action( 'rest_api_init', function () {
			( new Elementor_Post_Meta() )->register();
			( new Elementor_Settings() )->register();
			( new Elementor_User_Meta() )->register();
			( new Post_Query() )->register( Post_Query::ENDPOINT );
			( new Term_Query() )->register( Term_Query::ENDPOINT );
			( new User_Query() )->register( User_Query::ENDPOINT );
			if ( Plugin::instance()->experiments->is_feature_active( 'site-builder' ) ) {
				( new Design_System_REST_API() )->register();
			}
		} );
	}
}

Directory Contents

Dirs: 2 × Files: 1

Name Size Perms Modified Actions
base DIR
- drwxr-xr-x 2026-06-10 02:40:26
Edit Download
classes DIR
- drwxr-xr-x 2026-06-10 02:40:26
Edit Download
1.19 KB lrw-r--r-- 2026-05-20 16:19:28
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).