first commit

This commit is contained in:
Roman Pyrih
2025-08-26 10:50:15 +02:00
commit 97352dcdc9
6905 changed files with 2717203 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?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' ] );
}
}