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



_wp_footnotes_force_filtered_html_on_import_filter › WordPress Function

Since6.3.2
已弃用n/a
_wp_footnotes_force_filtered_html_on_import_filter ( $arg )
访问:
  • private
参数:
  • (string) $arg Input argument of the filter.
    Required: Yes
返回:
  • (string) Input argument of the filter.
定义在:
文档:

Initializes the filters for footnotes meta field when imported data should be filtered.

This filter is the last one being executed on {@see 'force_filtered_html_on_import'}. If the input of the filter is true, it means we are in an import situation and should enable kses, independently of the user capabilities. So in that case we call _wp_footnotes_kses_init_filters().


源码

function _wp_footnotes_force_filtered_html_on_import_filter( $arg ) {
	// If `force_filtered_html_on_import` is true, we need to init the global styles kses filters.
	if ( $arg ) {
		_wp_footnotes_kses_init_filters();
	}
	return $arg;
}