Recent

ContextclassPro only

Context

Carries the originating page language across REST requests.

Namespace: WebberZone\Better_Search\Pro\AI
Since: 4.5.0
Source: includes/pro/ai/class-context.php line 19

Methods

token() static

Build a signed public context, not an authentication credential.

Since: 4.5.0
Line: 34

static public function token(  ): string;

Returns: string — Context token.

decode() static

Validate the originating site’s language context.

Since: 4.5.0
Line: 53

static public function decode( string $token ): array|\WP_Error;
Type Name Description
string $token Signed context.

Returns: array|\WP_Error — Context or error.