Skip to content

ai_assistant_ability_domains

github-actions[bot] edited this page Nov 27, 2026 · 66 revisions

Filters ability domain keywords exposed to the browser runtime.

These domains help the assistant route plugin-specific topics to the ability tool instead of generic file or database inspection.

Example

add_filter( 'ai_assistant_ability_domains', function ( $domains ) {
    $domains['my-plugin'] = 'invoices, billing, payments, clients';
    return $domains;
} );

Parameters

  • array<string,string> $domains Map of plugin slug => comma-separated topic keywords.

Returns

array<string,string> The filtered domains map.

Files

apply_filters('ai_assistant_ability_domains', [])
apply_filters('ai_assistant_ability_domains', [])

← All Hooks

Clone this wiki locally