_wptexturize_pushpop_element ( $text, $stack, $disabled_elements )

  • private
  • (string) $text Text to check. Must be a tag like `<html>` or `[shortcode]`.
  • (array) $stack List of open tag elements.
  • (array) $disabled_elements The tag names to match against. Spaces are not allowed in tag names.
Defined at:


Search for disabled element tags. Push element to stack on tag open and pop on tag close.

Assumes first char of $text is tag opening and last char is tag closing. Assumes second char of $text is optionally '/' to indicate closing as in .

Related Functions

wptexturize_primes, _get_wptexturize_split_regex, _get_wptexturize_shortcode_regex, wptexturize, _wp_customize_publish_changeset

Top Google Results

User discussions

wpseek mobile