api-base.php in CartFlows – Funnel Builder & Checkout Plugin for WooCommerce 3.1.0, at admin-core/api/api-base.php
| 1 | <?php |
| 2 | /** |
| 3 | * CartFlows Admin Menu. |
| 4 | * |
| 5 | * @package CartFlows |
| 6 | */ |
| 7 | |
| 8 | namespace CartflowsAdmin\AdminCore\Api; |
| 9 | |
| 10 | // Exit if accessed directly. |
| 11 | if ( ! defined( 'ABSPATH' ) ) { |
| 12 | exit; |
| 13 | } |
| 14 | |
| 15 | /** |
| 16 | * Class Admin_Menu. |
| 17 | */ |
| 18 | abstract class ApiBase extends \WP_REST_Controller { |
| 19 | |
| 20 | /** |
| 21 | * Endpoint namespace. |
| 22 | * |
| 23 | * @var string |
| 24 | */ |
| 25 | protected $namespace = 'cartflows/v1'; |
| 26 | |
| 27 | /** |
| 28 | * Constructor |
| 29 | * |
| 30 | * @since 1.0.0 |
| 31 | */ |
| 32 | public function __construct() { |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * Register API routes. |
| 37 | */ |
| 38 | public function get_api_namespace() { |
| 39 | |
| 40 | return $this->namespace; |
| 41 | } |
| 42 | } |
| 43 |