do_shortcode

SummerySummery

Search content for shortcodes and filter shortcodes through their hooks.

Syntax

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

DescriptionDescription

If there are no shortcode tags defined, then the content will be returned without any filtering. This might cause issues when plugins are disabled but the shortcode will still show up in the post or content.

ParametersParameters

$content

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

$ignore_html

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

Default value: false

ReturnReturn

(string) Content with shortcodes filtered out.

SourceSource

File: wp-includes/shortcodes.php


			

ChangelogChangelog

Changelog
Version Description
2.5.0 Introduced.
Scroll to Top