get_autotoggle()
云策文档标注
概述
get_autotoggle() 函数用于获取 auto_toggle 设置,但自 WordPress 2.1.0 版本起已被弃用,始终返回 0。
关键要点
- 函数 get_autotoggle($id = 0) 接受一个可选参数 $id(整数类型,表示类别,默认为 0),用于指定要获取的类别。
- 该函数已被弃用(使用 _deprecated_function() 标记),自 WordPress 2.1.0 版本起不建议使用,且无论输入参数如何,始终返回整数值 0。
- 函数最初在 WordPress 0.71 版本中引入,在 2.1.0 版本中被弃用,开发者应避免在新代码中使用,并考虑替代方案。
原文内容
Gets the auto_toggle setting.
Parameters
$idintrequired-
The category to get. If no category supplied uses 0
Source
function get_autotoggle($id = 0) {
_deprecated_function( __FUNCTION__, '2.1.0' );
return 0;
}