wpseek.com
WordPress开发者和主题制作者的搜索引擎



apply_shortcodes › WordPress Function

Since5.4.0
已弃用n/a
apply_shortcodes ( $content, $ignore_html = false )
参数: (2)
  • (string) $content Content to search for shortcodes.
    Required: Yes
  • (bool) $ignore_html When true, shortcodes inside HTML elements will be skipped. Default false.
    Required: No
    默认: false
查看:
返回:
  • (string) Content with shortcodes filtered out.
定义在:
文档:

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 );
}