| Server IP : 68.178.247.200 / Your IP : 216.73.217.172 Web Server : Apache System : Linux p3plzcpnl489463.prod.phx3.secureserver.net 4.18.0-553.126.2.lve.el8.x86_64 #1 SMP Thu May 28 14:12:30 UTC 2026 x86_64 User : x9dppmxs4rgd ( 8559391) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /proc/self/cwd/wp-content/plugins/publishpress/libraries/Notifications/Workflow/Option/ |
Upload File : |
<?php
/**
* @package PublishPress\Notifications
* @author PublishPress <help@publishpress.com>
* @copyright Copyright (c) 2018 PublishPress. All rights reserved.
* @license GPLv2 or later
* @since 1.0.0
*/
namespace PublishPress\Notifications\Workflow\Option;
class SkipUser extends OptionCheckboxAbstract
{
protected function getName()
{
return '_psppno_option_skip_user';
}
protected function getFieldName()
{
return 'publishpress_notif_option_skip_user';
}
protected function getLabel()
{
return esc_html__('Skip current user', 'publishpress');
}
protected function getDescription()
{
return esc_html__('Skip notifications for the user who triggered the action', 'publishpress');
}
protected function getValue()
{
return (bool)get_post_meta($this->post->ID, $this->getName(), true);
}
public function setValue($postId, $post)
{
$value = 0;
if (isset($_POST[$this->getFieldName()])) {
$value = sanitize_key($_POST[$this->getFieldName()]);
}
update_post_meta(
$postId,
$this->getName(),
$value
);
}
}