函数文档

_wp_footnotes_remove_filters()

💡 云策文档标注

概述

_wp_footnotes_remove_filters() 函数用于移除脚注元字段的过滤器,具体是移除 sanitize_post_meta_footnotes 钩子上的 _wp_filter_post_meta_footnotes 回调函数。

关键要点

  • 函数移除 sanitize_post_meta_footnotes 过滤器钩子上的 _wp_filter_post_meta_footnotes 回调
  • 与 _wp_footnotes_kses_init() 函数相关,后者在用户无 unfiltered_html 权限时注册脚注元字段过滤器
  • 自 WordPress 6.3.2 版本引入

代码示例

remove_filter( 'sanitize_post_meta_footnotes', '_wp_filter_post_meta_footnotes' );

📄 原文内容

Removes the filters for footnotes meta field.

Source

function _wp_footnotes_remove_filters() {
	remove_filter( 'sanitize_post_meta_footnotes', '_wp_filter_post_meta_footnotes' );
}

Changelog

Version Description
6.3.2 Introduced.