options = $options; } /** * Return the saved plugin token. */ public function get_token() { return $this->options->get('token'); } /** * Compare the supplied token against the stored value. */ public function validate_token($token) { return hash_equals((string) $this->get_token(), (string) $token); } }