woocommerce_kses_notice_allowed_tags
Kses notice allowed tags.
Usage
add_filter( 'woocommerce_kses_notice_allowed_tags', 'wp_kama_woocommerce_kses_notice_allowed_tags_filter' ); /** * Function for `woocommerce_kses_notice_allowed_tags` filter-hook. * * @param array[]|string $allowed_tags An array of allowed HTML elements and attributes, or a context name such as 'post'. * * @return array[]|string */ function wp_kama_woocommerce_kses_notice_allowed_tags_filter( $allowed_tags ){ // filter... return $allowed_tags; }
- $allowed_tags(array[]|string)
- An array of allowed HTML elements and attributes, or a context name such as 'post'.
Changelog
Since 3.9.0 | Introduced. |
Where the hook is called
woocommerce_kses_notice_allowed_tags
woocommerce/includes/wc-notice-functions.php 289
return wp_kses( $message, apply_filters( 'woocommerce_kses_notice_allowed_tags', $allowed_tags ) );
Where the hook is used in WooCommerce
woocommerce/src/Blocks/Domain/Services/Notices.php 60
add_filter( 'woocommerce_kses_notice_allowed_tags', [ $this, 'add_kses_notice_allowed_tags' ] );