apply_shortcodes( string $content, bool $ignore_html = false )

Search content for shortcodes and filter shortcodes through their hooks.

Description Description

This function is an alias for do_shortcode().

See also See also

Top ↑

Parameters Parameters


(string) (Required) Content to search for shortcodes.


(bool) (Optional) When true, shortcodes inside HTML elements will be skipped.

Default value: false

Top ↑

Return Return

(string) Content with shortcodes filtered out.

Top ↑

Source Source

File: wp-includes/shortcodes.php

function apply_shortcodes( $content, $ignore_html = false ) {
	return do_shortcode( $content, $ignore_html );

Top ↑

Changelog Changelog

Version Description
5.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.