do_shortcode ( $content, $ignore_html = false )

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


Searches 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, wp_video_shortcode, wp_audio_shortcode, has_shortcode

Top Google Results

User discussions

wpseek mobile