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: - Introduced in WordPress: 2.5.0
- Deprecated in WordPress: —
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.