Automattic\WooCommerce\EmailEditor\Integrations\Utils
Dom_Document_Helper::get_attribute_value
Returns the value of the given attribute from the given element.
Метод класса: Dom_Document_Helper{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Dom_Document_Helper = new Dom_Document_Helper(); $Dom_Document_Helper->get_attribute_value( $element, $attribute ): string;
- $element(DOMElement) (обязательный)
- The element to get the attribute value from.
- $attribute(строка) (обязательный)
- The attribute to get the value from.
Код Dom_Document_Helper::get_attribute_value() Dom Document Helper::get attribute value WC 10.4.3
public function get_attribute_value( \DOMElement $element, string $attribute ): string {
return $element->hasAttribute( $attribute ) ? $element->getAttribute( $attribute ) : '';
}