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) Content with shortcodes filtered out.
相关
  • do_shortcode()
定义位置
  • wp-includes/shortcodes.php
    , line 185
引入
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 );
}