Server IP : 104.21.14.103 / Your IP : 18.225.117.86 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/home/giankuin/thietke365.net/wp-content/plugins/mailpoet/lib/WooCommerce/ |
Upload File : |
<?php declare(strict_types = 1); namespace MailPoet\WooCommerce; if (!defined('ABSPATH')) exit; use MailPoet\Cron\CronHelper; use MailPoet\Router\Endpoints\CronDaemon; use MailPoet\Settings\SettingsController; class WooSystemInfo { private $cronHelper; /** @var SettingsController */ private $settings; public function __construct( CronHelper $cronHelper, SettingsController $settings ) { $this->cronHelper = $cronHelper; $this->settings = $settings; } public function sendingMethod(): string { return $this->settings->get('mta.method'); } public function transactionalEmails(): string { return $this->settings->get('send_transactional_emails') ? __('Current sending method', 'mailpoet') : __('Default WordPress sending method', 'mailpoet'); } public function taskSchedulerMethod(): string { return $this->settings->get('cron_trigger.method'); } public function cronPingUrl(): string { return $this->cronHelper->getCronUrl(CronDaemon::ACTION_PING); } public function toArray(): array { return [ 'sending_method' => $this->sendingMethod(), 'transactional_emails' => $this->transactionalEmails(), 'task_scheduler_method' => $this->taskSchedulerMethod(), 'cron_ping_url' => $this->cronPingUrl(), ]; } }