WordPress at Your Fingertips

apply_shortcodes() WP 1.0

Search content for shortcodes and filter shortcodes through their hooks.

This function is an alias for do_shortcode().

No Hooks.

Return

String. Content with shortcodes filtered out.

Usage

apply_shortcodes( $content, $ignore_html );
$content(string) (required)
Content to search for shortcodes.
$ignore_html(true|false)
When true, shortcodes inside HTML elements will be skipped.
Default: false

Notes

Changelog

Since 5.4.0 Introduced.

Code of apply_shortcodes() WP 5.8.1

function apply_shortcodes( $content, $ignore_html = false ) {
	return do_shortcode( $content, $ignore_html );
}
No comments
    Log In