函数文档

global_terms_enabled()

💡 云策文档标注

概述

global_terms_enabled() 是一个已弃用的 WordPress 函数,用于检查全局术语是否启用,但自 6.1.0 版本起始终返回 false。

关键要点

  • 函数 global_terms_enabled() 在 WordPress 6.1.0 中被弃用,使用 _deprecated_function() 标记。
  • 该函数总是返回 false,表示全局术语功能已不再支持。
  • 相关函数 _deprecated_function() 用于标记弃用函数并通知使用情况。

注意事项

开发者应避免在新代码中使用此函数,并考虑替代方案或检查相关功能是否已移除。


📄 原文内容

Determines whether global terms are enabled.

Return

bool Always returns false.

Source

function global_terms_enabled() {
	_deprecated_function( __FUNCTION__, '6.1.0' );

	return false;
}

Changelog

Version Description
6.1.0 Deprecated.
3.0.0 Introduced.