Automattic\WooCommerce\Utilities
StringUtil::is_null_or_empty
Check if a string is null or is empty.
Метод класса: StringUtil{}
Хуков нет.
Возвращает
true|false. True if the string is null or is empty.
Использование
$result = StringUtil::is_null_or_empty( ?string $value );
- ?string $value(обязательный)
- .
Код StringUtil::is_null_or_empty() StringUtil::is null or empty WC 11.0.1
public static function is_null_or_empty( ?string $value ) {
return is_null( $value ) || '' === $value;
}