Automattic\WooCommerce\Vendor\Sabberworm\CSS\CSSList
CSSList::remove
Removes an item from the CSS list.
Method of the class: CSSList{}
No Hooks.
Returns
true|false. whether the item was removed
Usage
$CSSList = new CSSList(); $CSSList->remove( $oItemToRemove );
- $oItemToRemove(RuleSet|Import|Charset|CSSList) (required)
- May be a RuleSet (most likely a DeclarationBlock), a Import, a Charset or another CSSList (most likely a MediaQuery).
CSSList::remove() CSSList::remove code WC 10.4.3
public function remove($oItemToRemove)
{
$iKey = array_search($oItemToRemove, $this->aContents, true);
if ($iKey !== false) {
unset($this->aContents[$iKey]);
return true;
}
return false;
}