On this page
apply_shortcodes( string $content, bool $ignore_html = false ): string
Searches content for shortcodes and filter shortcodes through their hooks.
Description
This function is an alias for do_shortcode() .
See also
Parameters
$contentstring Required-
Content to search for shortcodes.
$ignore_htmlbool Optional-
When true, shortcodes inside HTML elements will be skipped.
Default:
false
Return
string Content with shortcodes filtered out.
Source
File: wp-includes/shortcodes.php. View all references
function apply_shortcodes( $content, $ignore_html = false ) {
return do_shortcode( $content, $ignore_html );
}
Related
Uses
| Uses | Description |
|---|---|
| do_shortcode() wp-includes/shortcodes.php | Searches content for shortcodes and filter shortcodes through their hooks. |
Changelog
| Version | Description |
|---|---|
| 5.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/apply_shortcodes