Automattic\WooCommerce\EmailEditorVendor\Sabberworm\CSS

OutputFormat::get │ public │ WC 1.0

Устарела с версии 8.8.0. Больше не поддерживается и может быть удалена. Используйте specific getters.

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

Хуков нет.

Возвращает

string|null.

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

$OutputFormat = new OutputFormat();
$OutputFormat->get( $sName );
$sName(строка) (обязательный)
.

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

Устарела С версии 8.8.0 , will be removed in 9.0.0. Use specific getters instead.

Код OutputFormat::get() WC 11.3.0

public function get($sName)
{
    $aVarPrefixes = ['a', 's', 'm', 'b', 'f', 'o', 'c', 'i'];
    foreach ($aVarPrefixes as $sPrefix) {
        $sFieldName = $sPrefix . ucfirst($sName);
        if (isset($this->$sFieldName)) {
            return $this->$sFieldName;
        }
    }
    return null;
}