WordPress\AiClient\Tools\DTO
WebSearch::toArray
{@inheritDoc}
Method of the class: WebSearch{}
No Hooks.
Returns
WebSearchArrayShape.
Usage
$WebSearch = new WebSearch(); $WebSearch->toArray(): array;
Changelog
| Since 0.1.0 | Introduced. |
WebSearch::toArray() WebSearch::toArray code WP 7.0
public function toArray(): array
{
return [self::KEY_ALLOWED_DOMAINS => $this->allowedDomains, self::KEY_DISALLOWED_DOMAINS => $this->disallowedDomains];
}