do_shortcodes_in_html_tags

SummerySummery

Search only inside HTML elements for shortcodes and process them.

Syntax

do_shortcodes_in_html_tags( string $content, bool $ignore_html, array $tagnames )

DescriptionDescription

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.

ParametersParameters

$content

(string) (Required) Content to search for shortcodes

$ignore_html

(bool) (Required) When true, all square braces inside elements will be encoded.

$tagnames

(array) (Required) List of shortcodes to find.

ReturnReturn

(string) Content with shortcodes filtered out.

SourceSource

File: wp-includes/shortcodes.php


			

ChangelogChangelog

Changelog
Version Description
4.2.3 Introduced.
Scroll to Top