apply_shortcodes
函数
apply_shortcodes ( $content, $ignore_html = false )
- 参数
-
-
(string)
$content
Content to search for shortcodes.- Required: 是
-
(bool)
$ignore_html
When true, shortcodes inside HTML elements will be skipped. Default false.- Required: 否
- Default: false
-
(string)
- 返回值
-
- (string) Content with shortcodes filtered out.
- 相关
-
- do_shortcode()
- 定义位置
-
-
wp-includes/shortcodes.php
, line 185
-
wp-includes/shortcodes.php
- 引入
- 5.4.0
- 弃用
- –
Searches content for shortcodes and filter shortcodes through their hooks.
This function is an alias for do_shortcode().
function apply_shortcodes( $content, $ignore_html = false ) { return do_shortcode( $content, $ignore_html ); }
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。