Checks if a function call is an ability call.
Parameters
$callWordPressAiClientToolsDTOFunctionCallrequired- The function call to check.
Source
public function is_ability_call( FunctionCall $call ): bool {
$name = $call->getName();
if ( null === $name ) {
return false;
}
return str_starts_with( $name, self::ABILITY_PREFIX );
}
Changelog
| Version | Description |
|---|---|
| 7.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.