Done !
| Server IP : 54.36.91.62 / Your IP : 216.73.216.38 Web Server : Apache System : Linux webm008.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : awaywithxm ( 25098) PHP Version : 7.0.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/awaywithxm/www/wp-content/themes/bottom_1769450703/modules/admin-home/rest/ |
Upload File : |
<?php
namespace HelloTheme\Modules\AdminHome\Rest;
use HelloTheme\Modules\AdminHome\Module;
use WP_REST_Server;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
abstract class Rest_Base {
const ROUTE_NAMESPACE = 'elementor-hello-elementor/v1';
abstract public function register_routes();
public function permission_callback(): bool {
return current_user_can( 'manage_options' );
}
public function __construct() {
add_action( 'rest_api_init', [ $this, 'register_routes' ] );
}
}