has_shortcode


has_shortcode ( $content, $tag )

Parameters:
  • (string) $content Content to search for shortcodes.
  • (string) $tag Shortcode tag to check.
Returns:
  • (bool) Whether the passed content contains the given shortcode.
Defined at:

Description

Whether the passed content contains the specified shortcode

Related Functions

add_shortcode, do_shortcode, strip_shortcodes, gallery_shortcode, wp_playlist_shortcode

Top Google Results

User discussions

wpseek mobile