_wp_footnotes_force_filtered_html_on_import_filter

函数
_wp_footnotes_force_filtered_html_on_import_filter ( $arg )
Access
Private
参数
  • (string) $arg Input argument of the filter.
    Required:
返回值
  • (string) Input argument of the filter.
定义位置
相关方法
_wp_footnotes_kses_init_filterswp_comment_form_unfiltered_html_nonce_wp_footnotes_remove_filters_wp_footnotes_kses_initwp_is_auto_update_forced_for_item
引入
6.3.2
弃用
-

在应过滤导入数据时,初始化脚注元字段过滤器。

该过滤器是最后一个在 force_filtered_html_on_import 上执行的过滤器。如果过滤器的输入为 true,则表示我们处于导入状态,应启用 kses。启用 kses,与用户能力无关。因此,在这种情况下,我们需要调用 _wp_footnotes_kses_init_filters;

function _wp_footnotes_force_filtered_html_on_import_filter( $arg ) {
	// 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;
}

常见问题

FAQs
查看更多 >