easy-svg-pro/search-documentation
Search the Easy SVG Pro documentation.
Ability · Easy SVG Pro · Defined in includes/abilities/docs.php
Usage
wp_get_ability( 'easy-svg-pro/search-documentation' )->execute( array $input ): array|WP_Error
Example
<?php
$ability = wp_get_ability( 'easy-svg-pro/search-documentation' );
if ( $ability ) {
$result = $ability->execute( array(
'query' => 'icon block',
) );
}
Description
Searches the UnleashWP documentation and reads the best matching pages in full. Asks the documentation server only when called; the same question is answered from a copy for an hour.
Answers from the documentation of support.unleash-wp.com and changes nothing on the site.
Registered while the AI agents (MCP) switch is on, which it is out of the box.
Permission: the user needs manage_options.
Read only: it changes nothing.
Parameters
Required. What to look for, in words. At most 1000 characters.
Optional. How many results to return, 1 to 10. Default 5.
Optional. One of: Deutsch, English. Without it, the search is not limited to one language.
Optional. Also read the best matching pages in full. Default true: left out, the pages are read; any value other than true turns it off.
Return value
An array on success, a WP_Error with the route's code and status on failure.