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: - Introduced in WordPress: 3.6.0
- Deprecated in WordPress: —
Description
Determines whether the passed content contains the specified shortcode.