Recent

AIclassPro only

AI

Entry point for the AI “Ask the Docs” feature.

Only instantiated when the WordPress AI Client (WordPress 7.0+) is present.

Namespace: WebberZone\Knowledge_Base\Pro\AI
Since: 3.2.0
Source: includes/pro/ai/class-ai.php line 23

Methods

__construct()

Constructor.

Line: 84

public function __construct(  );

add_privacy_policy_content()

Suggest privacy policy text.

Since: 3.2.0
Line: 111

public function add_privacy_policy_content(  ): void;

Returns: void

can_load() static

Whether this WordPress install has the AI Client.

Since: 3.2.0
Line: 140

static public function can_load(  ): bool;

Returns: bool — True if the module can load.

is_enabled()

Whether the site owner has enabled Ask the Docs.

Since: 3.2.0
Line: 151

public function is_enabled(  ): bool;

Returns: bool — True if enabled.

is_ready()

Whether Ask the Docs is enabled and a provider can serve it.

Since: 3.2.0
Line: 162

public function is_ready(  ): bool;

Returns: bool — True if requests can be sent to the provider.