apply_shortcodes()
最后更新于:2021-11-25 19:49:30
apply_shortcodes( string$content, bool$ignore_html=false)Search content for shortcodes and filter shortcodes through their hooks.
参数
- $content
-
(string) (Required) Content to search for shortcodes.
- $ignore_html
-
(bool) (Optional) When true, shortcodes inside HTML elements will be skipped.
Default value: false
响应
(string) Content with shortcodes filtered out.
源文件
文件: gc-includes/shortcodes.php
function apply_shortcodes( $content, $ignore_html = false ) {
return do_shortcode( $content, $ignore_html );
}