public function isValidToken( $token, $action = -1 ) {
		$action = $action === -1 ? session_id() : $action;
		$lifetime = (int) wp_verify_nonce( $token, $action );
		return ( $lifetime > 0 && $lifetime <= $this->maximum_lifetime );
	}
public function isValidToken( $token, $action = -1 ) {
		$action = $action === -1 ? session_id() : $action;
		$lifetime = (int) wp_verify_nonce( $token, $action );
		return ( $lifetime > 0 && $lifetime <= $this->maximum_lifetime );
	}
public function isValidToken ( $ token , $ action = - 1 ) { $ action = $ action === - 1 ? session_id ( ) : $ action ; $ lifetime = ( int ) wp_verify_nonce ( $ token , $ action ) ; return ( $ lifetime > 0 && $ lifetime <= $ this -> maximum_lifetime ) ; }
Check if a token is valid.

@param  string     $token
@param  int|string $action
@return boolean
Check if a token is valid .