do_shortcodes_in_html_tags


do_shortcodes_in_html_tags ( $content, $ignore_html, $tagnames )

Parameters:
  • (string) content Content to search for shortcodes.
  • (bool) ignore_html When true, all square braces inside elements will be encoded.
  • (array) tagnames List of shortcodes to find.
Returns:
  • (string) Content with shortcodes filtered out.
Defined at:

Description

Searches only inside HTML elements for shortcodes and process them.Any [ or ] characters remaining inside elements will be HTML encoded to prevent interference with shortcodes that are outside the elements. Assumes $content processed by KSES already. Users with unfiltered_html capability may get unexpected output if angle braces are nested in tags.

Related Functions

do_shortcode_tag, wp_replace_in_html_tags, do_shortcode, strip_shortcode_tag, shortcode_atts

Top Google Results

User discussions

wpseek mobile