# firebox/trunk/Inc/Core/API/API.php

FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin &amp; Cart Abandonment, version trunk. 49 lines.

- Page: https://pluginprobe.com/plugins/firebox/trunk/code/Inc/Core/API/API.php
- Raw: https://pluginprobe.com/plugins/firebox/trunk/raw/Inc/Core/API/API.php
- Modified: 2026-09-07T07:37:52+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/firebox/trunk/code/Inc/Core/API/API.php#L10-L20`.

```php
<?php
/**
 * @package         FireBox
 * @version         3.1.13 Free
 * 
 * @author          FirePlugins <info@fireplugins.com>
 * @link            https://www.fireplugins.com
 * @copyright       Copyright © 2026 FirePlugins All Rights Reserved
 * @license         GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
*/

namespace FireBox\Core\API;

if (!defined('ABSPATH'))
{
	exit; // Exit if accessed directly.
}

class API
{
	private $open_routes = [
		'FireBox',
		'Campaigns',
		
	];
	
	
	
    public function __construct()
    {
        add_action('rest_api_init', [$this, 'register_open_routes']);

		
    }

	
	
	public function register_open_routes()
	{
		foreach ($this->open_routes as $route)
		{
			$class = '\FireBox\Core\API\Routes\Open\\' . $route;
			$api = new $class();
			$api->register();
		}
	}
	
	
}
```
