Searches content for shortcodes and filter shortcodes through their hooks.
This function is an alias for do_shortcode() .
$contentstringrequired
$ignore_htmlbooloptional
Default:false
function apply_shortcodes( $content, $ignore_html = false ) {
return do_shortcode( $content, $ignore_html );
}
| Version | Description |
|---|---|
| 5.4.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/apply_shortcodes