get_shortcode_tags_in_content


get_shortcode_tags_in_content ( $content )

Parameters:
  • (string) content The content to check.
Returns:
  • (string[]) An array of registered shortcode names found in the content.
Defined at:

Description

Returns a list of registered shortcode names found in the given content.Example usage: get_shortcode_tags_in_content( '[audio src="file.mp3"][/audio] [foo] [gallery ids="1,2,3"]' ); // array( 'audio', 'gallery' )

Related Functions

get_shortcode_atts_regex, get_url_in_content, get_the_content, _filter_do_shortcode_context, get_shortcode_regex

Top Google Results

User discussions

wpseek mobile