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. Default false.
Returns:
  • (string) Content with shortcodes filtered out.
Defined at:

Description

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