namespace Elementor\Core\Editor\Data\Globals\Endpoints; use Elementor\Data\Base\Endpoint; // TODO: Create base class for index endpoints, and move this function to there. class Index extends Endpoint { public function get_name() { return 'index'; // TODO: Replace with BaseIndex class. } public function get_items( $request ) { return $this->controller->get_items_recursive( [ $this ] ); // TODO: Replace with BaseIndex class. } }
Fatal error: Uncaught Error: Class 'Elementor\Core\Editor\Data\Globals\Endpoints\Index' not found in /home/customer/www/inspiredtobecome.com/public_html/wp-content/plugins/elementor/data/base/controller.php:206 Stack trace: #0 /home/customer/www/inspiredtobecome.com/public_html/wp-content/plugins/elementor/core/editor/data/globals/controller.php(18): Elementor\Data\Base\Controller->register_endpoint('Elementor\\Core\\...') #1 /home/customer/www/inspiredtobecome.com/public_html/wp-content/plugins/elementor/data/base/controller.php(260): Elementor\Core\Editor\Data\Globals\Controller->register_internal_endpoints() #2 /home/customer/www/inspiredtobecome.com/public_html/wp-content/plugins/elementor/data/base/controller.php(45): Elementor\Data\Base\Controller->register() #3 /home/customer/www/inspiredtobecome.com/public_html/wp-includes/class-wp-hook.php(303): Elementor\Data\Base\Controller->Elementor\Data\Base\{closure}(Object(WP_REST_Server)) #4 /home/customer/www/inspiredtobecome.com/public_html/wp-includes/class-wp-hook.php in /home/customer/www/inspiredtobecome.com/public_html/wp-content/plugins/elementor/data/base/controller.php on line 206