Automattic\WooCommerce\EmailEditorVendor\Sabberworm\CSS\CSSList
CSSList::remove
Removes an item from the CSS list.
Метод класса: CSSList{}
Хуков нет.
Возвращает
bool. whether the item was removed
Использование
$CSSList = new CSSList(); $CSSList->remove( $oItemToRemove );
- $oItemToRemove(RuleSet|Import|Charset|CSSList) (обязательный)
- May be a RuleSet (most likely a DeclarationBlock), a Import, a Charset or another CSSList (most likely a MediaQuery).
Код CSSList::remove() CSSList::remove WC 11.3.0
public function remove($oItemToRemove)
{
$iKey = array_search($oItemToRemove, $this->aContents, true);
if ($iKey !== false) {
unset($this->aContents[$iKey]);
return true;
}
return false;
}