REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.35 KB
Close
/home/nshryvcy/himaltourism.com/wp-content/plugins/mailpoet/lib/Automation/Engine/API/API.php
Text
Base64
<?php declare(strict_types = 1); namespace MailPoet\Automation\Engine\API; if (!defined('ABSPATH')) exit; use MailPoet\API\REST\API as MailPoetApi; use MailPoet\Automation\Engine\Hooks; use MailPoet\Automation\Engine\WordPress; class API extends MailPoetApi { /** @var MailPoetApi */ private $api; /** @var WordPress */ private $wordPress; public function __construct( MailPoetApi $api, WordPress $wordPress ) { $this->api = $api; $this->wordPress = $wordPress; } public function initialize(): void { $this->wordPress->addAction(MailPoetApi::REST_API_INIT_ACTION, function () { $this->wordPress->doAction(Hooks::API_INITIALIZE, [$this]); }); } public function registerGetRoute(string $route, string $endpoint): void { $this->api->registerGetRoute($route, $endpoint); } public function registerPostRoute(string $route, string $endpoint): void { $this->api->registerPostRoute($route, $endpoint); } public function registerPutRoute(string $route, string $endpoint): void { $this->api->registerPutRoute($route, $endpoint); } public function registerPatchRoute(string $route, string $endpoint): void { $this->api->registerPatchRoute($route, $endpoint); } public function registerDeleteRoute(string $route, string $endpoint): void { $this->api->registerDeleteRoute($route, $endpoint); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
API.php
1.35 KB
lrw-r--r--
2023-04-04 05:35:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Endpoint.php
372 B
lrw-r--r--
2023-04-04 05:35:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.php
0 B
lrw-r--r--
2023-04-04 05:35:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).