gppa_lmt_kses_allowed_html
Description
Filter the allowed HTML tags for Live Merge Tag values. By default, no HTML tags are allowed. Use this filter to opt in to specific tags.
Usage
Applied globally
add_filter( 'gppa_lmt_kses_allowed_html', 'my_custom_function' );Parameters
$allowed
array
Allowed HTML tags and attributes.
$value
mixed
The Live Merge Tag value being sanitized.
Examples
Modify the allowed HTML tags to include <a> and <strong> tags.
add_filter( ‘gppa_lmt_kses_allowed_html’, function( $allowed, $value ) { $allowed = array( ‘a’, ‘strong’ ); return $allowed; }, 10, 2 );
Since
2.1.54Hook added.