function checkForAction()
 {
     if (!empty($_POST['option_page']) and $_POST['option_page'] == self::OPTION_PAGE) {
         parent::checkForAction();
     }
 }
Example #2
0
 function checkForAction()
 {
     if (!empty($_POST['option_page']) and !in_array($_POST['option_page'], self::$avoidPages)) {
         parent::checkForAction();
     }
 }
Example #3
0
 function pluginsLoaded()
 {
     parent::pluginsLoaded();
     if ($this->isTheAction() and RublonConfirmations::$dataRestored or !$this->isConfirmationRequired()) {
         // Update user protection type
         $current_user = wp_get_current_user();
         if (!empty($_POST[RublonHelper::FIELD_USER_PROTECTION_TYPE]) and $_POST[RublonHelper::FIELD_USER_PROTECTION_TYPE] != RublonHelper::userProtectionType($current_user)) {
             RublonHelper::setUserProtectionType($current_user, $_POST[RublonHelper::FIELD_USER_PROTECTION_TYPE]);
         }
         if (!empty($_POST['email']) && $_POST['email'] !== RublonHelper::getUserEmail($current_user)) {
             RublonHelper::clearMobileUserStatus($current_user);
         }
     }
 }
Example #4
0
 function getConfirmMessage()
 {
     return sprintf(parent::getConfirmMessage(), $this->getUserLogin());
 }