settings()->activationDate; if (! $activationDate) { $activationDate = time(); \wpSPIO()->settings()->activationDate = $activationDate; } parent::load(); } protected function checkTrigger() { if (\wpSPIO()->settings()->verifiedKey) { return false; } // If not key is verified. return true; } protected function getMessage() { $message = "
" . __('To start the optimization process, you need to validate your API key on the ' . 'ShortPixel Settings page in your WordPress admin.','shortpixel-image-optimiser') . "
" . __('If you do not have an API key yet, just fill out the form and a key will be created.','shortpixel-image-optimiser') . "
"; return $message; } }