user_options = $user_options; } /** * Retrieves the user verification tag. * * @since 1.0.0 * * @return bool True if the user is verified, or false otherwise. */ public function get() { return (bool) $this->user_options->get( self::OPTION ); } /** * Flags the user as verified or unverified. * * @since 1.0.0 * * @param bool $verified Whether to flag the user as verified or unverified. * @return bool True on success, false on failure. */ public function set( $verified ) { if ( ! $verified ) { return $this->user_options->delete( self::OPTION ); } return $this->user_options->set( self::OPTION, 'verified' ); } /** * Checks whether the user is verified. * * @since 1.0.0 * * @return bool True if verified, false otherwise. */ public function has() { // Kind of redundant, but here for consistency. return $this->get(); } }