Automattic\WooCommerce\Blocks\Domain\Services
Notices::add_kses_notice_allowed_tags()
Allow SVG icon in notices.
Method of the class: Notices{}
No Hooks.
Return
Array
.
Usage
$Notices = new Notices(); $Notices->add_kses_notice_allowed_tags( $allowed_tags );
- $allowed_tags(array) (required)
- Allowed tags.
Notices::add_kses_notice_allowed_tags() Notices::add kses notice allowed tags code WC 9.7.1
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 ); }