Automattic\WooCommerce\EmailEditor\Engine\Renderer
Html2Text::is_whitespace
Check if text is whitespace
Метод класса: Html2Text{}
Хуков нет.
Возвращает
bool. True if the text is whitespace.
Использование
$result = Html2Text::is_whitespace( $text ): bool;
- $text(строка) (обязательный)
- The text to check.
Код Html2Text::is_whitespace() Html2Text::is whitespace WC 11.2.2
public static function is_whitespace( string $text ): bool {
return 0 === strlen( trim( self::render_text( $text ), "\n\r\t " ) );
}