WordPress\AiClient\Tools\DTO
WebSearch::__construct
Constructor.
Method of the class: WebSearch{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WebSearch = new WebSearch(); $WebSearch->__construct( $allowedDomains, $disallowedDomains );
- $allowedDomains(string[])
- List of domains that are allowed for web search.
Default:[] - $disallowedDomains(string[])
- List of domains that are disallowed for web search.
Default:[]
Changelog
| Since 0.1.0 | Introduced. |
WebSearch::__construct() WebSearch:: construct code WP 7.0
public function __construct(array $allowedDomains = [], array $disallowedDomains = [])
{
$this->allowedDomains = $allowedDomains;
$this->disallowedDomains = $disallowedDomains;
}