WooCommerce Code Reference

Settings
in package

Parser settings class.

Configure parser behaviour here.

Table of Contents

beStrict()  : self
Configures the parser to choke on invalid rules.
create()  : self
withDefaultCharset()  : self
Sets the charset to be used if the CSS does not contain an `@charset` declaration.
withLenientParsing()  : self
Configures whether the parser should silently ignore invalid rules.
withMultibyteSupport()  : self
Enables/disables multi-byte string support.
__construct()  : mixed

Methods

withDefaultCharset()

Sets the charset to be used if the CSS does not contain an `@charset` declaration.

public withDefaultCharset(string $sDefaultCharset) : self
Parameters
$sDefaultCharset : string
Return values
selffluent interface

withLenientParsing()

Configures whether the parser should silently ignore invalid rules.

public withLenientParsing([bool $bLenientParsing = true ]) : self
Parameters
$bLenientParsing : bool = true
Return values
selffluent interface

withMultibyteSupport()

Enables/disables multi-byte string support.

public withMultibyteSupport([bool $bMultibyteSupport = true ]) : self

If true (mbstring extension must be enabled), will use (slower) mb_strlen, mb_convert_case, mb_substr and mb_strpos functions. Otherwise, the normal (ASCII-Only) functions will be used.

Parameters
$bMultibyteSupport : bool = true
Return values
selffluent interface