Automattic\WooCommerce\Blocks\Domain\Services
Notices::add_kses_notice_allowed_tags
Allow SVG icon in notices.
Метод класса: Notices{}
Хуков нет.
Возвращает
Массив.
Использование
$Notices = new Notices(); $Notices->add_kses_notice_allowed_tags( $allowed_tags );
- $allowed_tags(массив) (обязательный)
- Allowed tags.
Код Notices::add_kses_notice_allowed_tags() Notices::add kses notice allowed tags WC 10.4.3
public function add_kses_notice_allowed_tags( $allowed_tags ) {
$svg_args = array(
'svg' => array(
'aria-hidden' => true,
'xmlns' => true,
'width' => true,
'height' => true,
'viewbox' => true,
'focusable' => true,
),
'path' => array(
'd' => true,
),
);
return array_merge( $allowed_tags, $svg_args );
}