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

Determines whether the passed content contains the specified shortcode.

Related Functions

add_shortcode, do_shortcode, apply_shortcodes, strip_shortcodes, gallery_shortcode

Top Google Results

User discussions

wpseek mobile