do_shortcode


do_shortcode ( $content, $ignore_html = false )

Parameters:
  • (string) $content Content to search for shortcodes.
  • (bool) $ignore_html When true, shortcodes inside HTML elements will be skipped.
Returns:
  • (string) Content with shortcodes filtered out.
Defined at:

Description

Search content for shortcodes and filter shortcodes through their hooks.

If there are no shortcode tags defined, then the content will be returned without any filtering. This might cause issues when plugins are disabled but the shortcode will still show up in the post or content.

Related Functions

add_shortcode, do_shortcode_tag, has_shortcode, wp_audio_shortcode, wp_video_shortcode

Top Google Results

User discussions

wpseek mobile