WPDev.one
Core Function
View Source on Trac ↗

apply_shortcodes()

apply_shortcodes( mixed $content, mixed $ignore_html = false )

Searches content for shortcodes and filter shortcodes through their hooks.

Parameters 2 required

Name / Type Description
$content
string

Content to search for shortcodes.

Required
bool

$ignore_html When true, shortcodes inside HTML elements will be skipped. Default false.

Required

Return Value

(string)
Content with shortcodes filtered out.

Function Information

Since Version
5.4.0
Source File
wp-includes/shortcodes.php
Advertisement