WordPress at a glance
function is not described


CssToAttributeConverter::mapCssToHtmlAttribute() private WC 1.0

Tries to apply the CSS style to $node as an attribute.

This method maps a CSS rule to HTML attributes and adds those to the node.

{} It's a method of the class: CssToAttributeConverter{}

No Hooks.


null. Nothing.


// private - for code of main (parent) class only
$result = $this->mapCssToHtmlAttribute( $property, $value, \DOMElement $node );
$property(string) (required)
the name of the CSS property to map
$value(string) (required)
the value of the style rule to map
\DOMElement $node (required)

Code of CssToAttributeConverter::mapCssToHtmlAttribute() WC 5.4.1

private function mapCssToHtmlAttribute($property, $value, \DOMElement $node)
    if (!$this->mapSimpleCssProperty($property, $value, $node)) {
        $this->mapComplexCssProperty($property, $value, $node);