golden hour
/home/godaofbq/hyperxmed.com/wp-content/plugins/essential-blocks/includes/API
⬆️ Go Up
Upload
File/Folder
Size
Actions
Base.php
1.03 KB
Del
OK
PostBlock.php
4.11 KB
Del
OK
Product.php
16.09 KB
Del
OK
Server.php
501 B
Del
OK
error_log
17.69 KB
Del
OK
Edit: Server.php
<?php namespace EssentialBlocks\API; use EssentialBlocks\Traits\HasSingletone; class Server { use HasSingletone; public function __construct() { add_action( 'rest_api_init', array( $this, 'register_routes' ) ); } public function register_routes() { $routes = $this->routes(); foreach ( $routes as $route ) { $route->register(); } } public function routes() { return array( 'product' => Product::get_instance(), 'post-blocks' => PostBlock::get_instance(), ); } }
Save