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).

Метод класса: WP_AI_Client_Prompt_Builder{}

Хуков нет.

Возвращает

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

Использование

$result = WP_AI_Client_Prompt_Builder::is_generating_method( $name ): bool;
$name(строка) (обязательный)
The method name.

Список изменений

С версии 7.0.0 Введена.

Код WP_AI_Client_Prompt_Builder::is_generating_method() WP 7.0

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