bbp_register_theme_package(大批$主题=大批()那$覆盖=真的的)
将新的论坛主题包注册到活动主题包数组
描述
参数
- $主题
-
(大批的)(可选的)
默认值:array()
来源
文件:BP-Forums / Core / Theme-Compat.php
函数bbp_register_theme_package($ theme = array(),$ override = true){//从$主题数组中创建新的bbp_theme_compat对象(IS_Array($主题))$主题= new bbp_theme_compat($主题);//如果$主题不是一个适当的对象,如果(!is_a($ theme,'bbp_theme_compat')))返回;//加载论坛$ bbp = bbpress();//如果标志设置并未注册,则仅覆盖(空($ bbp-> theme_compat-> packages [$ theme-> id])||(true === $ override)){$ bbp-> theme_compat- >包[$主题 - > id] = $主题;}}
变更乐
版本 | 描述 |
---|---|
Bbpress(R3829) | 介绍。 |