gppa_lmt_kses_allowed_html

  1. Description
  2. Usage
  3. Parameters
  4. Examples
    1. Modify the allowed HTML tags to include <a> and <strong> tags.
  5. Since

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.54 Hook added.