WP_AI_Client_Prompt_Builder::is_generating_methodprivate staticWP 7.0.0

Checks if a method name is a generating method (generate_, convert_text_to_speech).

Method of the class: WP_AI_Client_Prompt_Builder{}

No Hooks.

Returns

true|false. True if the method is a generating method, false otherwise.

Usage

$result = WP_AI_Client_Prompt_Builder::is_generating_method( $name ): bool;
$name(string) (required)
The method name.

Changelog

Since 7.0.0 Introduced.

WP_AI_Client_Prompt_Builder::is_generating_method() code WP 7.0

private static function is_generating_method( string $name ): bool {
	return isset( self::$generating_methods[ $name ] );
}