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\API\JSON\Error as APIError; use MailPoet\Config\AccessControl; use MailPoet\Settings\UserFlagsController; class UserFlags extends APIEndpoint { /** @var UserFlagsController */ private $userFlags; public $permissions = [ 'global' => AccessControl::ALL_ROLES_ACCESS, ]; public function __construct( UserFlagsController $userFlags ) { $this->userFlags = $userFlags; } public function set(array $flags = []) { if (empty($flags)) { return $this->badRequest( [ APIError::BAD_REQUEST => __('You have not specified any user flags to be saved.', 'mailpoet'), ] ); } else { foreach ($flags as $name => $value) { $this->userFlags->set($name, $value); } return $this->successResponse([]); } } }
[-] 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]