bbp_set_platform_tab_submenu_active(细绳$ parent_file.的)
使用WordPress本机样式突出显示子菜单项。
描述
参数
- $ parent_file.
-
(细绳的)(必需的)父菜单的文件名。
返回
(细绳)$ parent_file父菜单的文件名。
来源
函数bbp_set_platform_tab_submenu_active($ parent_file){global $ pagenow,$ current_screen,$ post;if((ISSET($ POST- POST_TYPE)&& $ post-> post_type == bbp_get_reply_post_type()&& $ pagenow =='edit.php')||(isset($ post-> post_type)&& $ post-> post_type== bbp_get_reply_post_type()&& $ pagenow =='post-new.php')||(isset($ post-> post_type)&& $ post-> post_type == bbp_get_reply_post_type()&$ pagenow =='post.php')){$ parent_file ='buddyboss-platform';} elsef(($ current_screen-> taxonomy == bbp_get_topic_tag_tax_id()&& $ pagenow =='edit-tags.php')||($ current_screen-> caxonomy == bbp_get_topic_tag_tax_id()&$ pagenow =='term.php')){$ parent_file ='buddyboss-platform';} elsef((isset($ post-> post_type)&& $ post-> post_type == bbp_get_topic_post_type()&& $ pagenow =='edit.php')||(isset($ post-> post_type)&& $ post->post_type == bbp_get_topic_post_type()&& $ pagenow =='post-new.php')||(isset($ post- post_type)&& $ post-> post_type == bbp_get_topic_post_type()&& $ pagenow =='post.php')){$ parent_file ='buddyboss-platform';} elsef(($ current_screen-> post_type == bbp_get_forum_post_type()&& $ pagenow =='edit.php')||($ current_screen-> post_type == bbp_get_forum_post_type()&& $ pagenow =='post-new.php')||($ current_screen-> post_type == bbp_get_forum_post_type()&& $ pagenow =='post.php')){$ parent_file ='buddyboss-platform'; } return $parent_file; }