| Server IP : 127.0.1.1 / Your IP : 127.0.0.1 Web Server : Apache/2.4.52 (Ubuntu) System : Linux sealall 5.15.0-179-generic #189-Ubuntu SMP Tue May 5 18:20:56 UTC 2026 x86_64 User : devops ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/domains/sealall.ca/wp-content/plugins/independent-analytics/IAWP/AJAX/ |
Upload File : |
<?php
namespace IAWP\AJAX;
use IAWP\Capability_Manager;
/** @internal */
class Test_Email extends \IAWP\AJAX\AJAX
{
protected function action_name() : string
{
return 'iawp_test_email';
}
protected function requires_pro() : bool
{
return \true;
}
protected function requires_write_access() : bool
{
return \true;
}
protected function action_callback() : void
{
if (!Capability_Manager::can_edit()) {
return;
}
$recipient = $this->get_field('recipient');
if (!\in_array($recipient, ['first', 'all'])) {
return;
}
$sent = \IAWPSCOPED\iawp()->email_reports->send_email_report(\true, $recipient);
echo \rest_sanitize_boolean($sent);
}
}