woocommerce_kses_notice_allowed_tags filter-hookWC 3.9.0

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

wc_kses_notice()
woocommerce_kses_notice_allowed_tags
woocommerce/includes/wc-notice-functions.php 268
return wp_kses( $message, apply_filters( 'woocommerce_kses_notice_allowed_tags', $allowed_tags ) );

Where the hook is used in WooCommerce

Usage not found.