wzkb_ai_retrieved_articles
Filter the articles sent to the AI provider as context.
Type: filter
Since: 3.2.0
Source: includes/pro/ai/class-prompt-service.php line 115
Parameters
| Type | Name | Description |
|---|---|---|
array[] |
$articles |
Articles with id, title, url and content. |
string |
$question |
Visitor question. |
int |
$limit |
Requested number of articles. |
Usage
add_filter( 'wzkb_ai_retrieved_articles', function($articles, $question, $limit) {
// ...
return $articles;
} );