Automattic\WooCommerce\EmailEditorVendor\Sabberworm\CSS\Value

Size::isSize │ public │ WC 1.0

Returns whether the number stored in this Size really represents a size (as in a length of something on screen).

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

Хуков нет.

Возвращает

false. if the unit an angle, a duration, a frequency or the number is a component in a Color object.

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

$Size = new Size();
$Size->isSize();

Код Size::isSize() WC 11.3.0

public function isSize()
{
    if (in_array($this->sUnit, self::NON_SIZE_UNITS, true)) {
        return false;
    }
    return !$this->isColorComponent();
}