Core Function
View Source on Trac ↗ do_shortcode()
do_shortcode( mixed $content, mixed $ignore_html = false ) Searches content for shortcodes and filter shortcodes through their hooks.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $content string | Content to search for shortcodes. Required |
| bool | $ignore_html When true, shortcodes inside HTML elements will be skipped. Default false. Required |
Return Value
(string)
Content with shortcodes filtered out.
Function Information
Since Version
2.5.0
Source File
wp-includes/shortcodes.php
Advertisement