PATH:
home
/
lab2454c
/
caimegroup.com
/
wp-content
/
plugins
/
mailpoet
/
lib
/
API
/
JSON
/
v1
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing namespace MailPoet\API\JSON\v1; if (!defined('ABSPATH')) exit; use MailPoet\API\JSON\Endpoint as APIEndpoint; use MailPoet\Config\AccessControl; use MailPoet\Config\Activator; use MailPoet\WP\Functions as WPFunctions; class Setup extends APIEndpoint { public $permissions = [ 'global' => AccessControl::PERMISSION_MANAGE_SETTINGS, ]; /** @var WPFunctions */ private $wp; /** @var Activator */ private $activator; public function __construct( WPFunctions $wp, Activator $activator ) { $this->wp = $wp; $this->activator = $activator; } public function reset() { try { $this->activator->deactivate(); $this->activator->activate(); $this->wp->doAction('mailpoet_setup_reset'); return $this->successResponse(); } catch (\Exception $e) { return $this->errorResponse([ $e->getCode() => $e->getMessage(), ]); } } }
[-] Segments.php
[edit]
[-] Settings.php
[edit]
[-] Forms.php
[edit]
[-] FeatureFlags.php
[edit]
[-] Setup.php
[edit]
[-] index.php
[edit]
[+]
..
[-] AutomatedLatestContent.php
[edit]
[-] SubscriberStats.php
[edit]
[-] WoocommerceSettings.php
[edit]
[-] NewsletterLinks.php
[edit]
[-] AutomaticEmails.php
[edit]
[-] ImportExport.php
[edit]
[-] Subscribers.php
[edit]
[-] Analytics.php
[edit]
[-] DynamicSegments.php
[edit]
[-] Premium.php
[edit]
[-] UserFlags.php
[edit]
[-] Services.php
[edit]
[-] Newsletters.php
[edit]
[-] CustomFields.php
[edit]
[-] SendingTaskSubscribers.php
[edit]
[-] Coupons.php
[edit]
[-] NewsletterTemplates.php
[edit]
[-] SendingQueue.php
[edit]
[-] Mailer.php
[edit]
[-] Tags.php
[edit]