AI
Entry point for the AI “AI answers” feature.
Registers settings and integration hooks; availability is checked when a question is asked.
Namespace: WebberZone\Better_Search\Pro\AI
Since: 4.5.0
Source: includes/pro/ai/class-ai.php line 23
Methods
__construct()
Constructor.
Line: 91
public function __construct( );
add_status_table()
Include the question log in the Tools table report.
Since: 4.5.0
Line: 122
public function add_status_table( $tables ): array;
| Type | Name | Description |
|---|---|---|
array |
$tables |
Table labels keyed by name. |
Returns: array — Table labels keyed by name.
add_privacy_policy_content()
Suggest privacy policy text.
Since: 4.5.0
Line: 133
public function add_privacy_policy_content( ): void;
Returns: void
can_load() static
Whether this WordPress install has the AI Client.
Since: 4.5.0
Line: 162
static public function can_load( ): bool;
Returns: bool — True if the module can load.
is_enabled()
Whether the site owner has enabled AI answers.
Since: 4.5.0
Line: 173
public function is_enabled( ): bool;
Returns: bool — True if enabled.
is_ready()
Whether AI answers is enabled and a provider can serve it.
Since: 4.5.0
Line: 184
public function is_ready( ): bool;
Returns: bool — True if requests can be sent to the provider.