bp_get_displayed_user_nav ()
为显示的用户呈现导航标记。
描述
源
文件:bp-members / bp-members-template.php
函数bp_get_displayed_user_nav() {$bp = buddypress();Foreach ($bp->members->nav->get_primary() as $user_nav_item) {if (empty($user_nav_item->show_for_displayed_user) && !Bp_is_my_profile()){继续;} $selected = "; ";If (bp_is_current_component($user_nav_item->slug)) {$selected = ' class="当前被选中"';} if (bp_loggedin_user_domain()) {$link = str_replace(bp_loggedin_user_domain(), bp_displayed_user_domain(), $user_nav_item->link);} else {$link = trailingslashit(bp_displayed_user_domain() . txt . txt . txt . txt . txt . txt . txt . txt . txt . txt . txt . txt . txt . txt . txt . txt。美元user_nav_item - >链接);} /** *为显示的用户过滤导航标记。* *这是一个动态过滤器,依赖于被渲染的导航选项卡组件。 * * @since BuddyPress 1.1.0 * * @param string $value Markup for the tab list item including link. * @param array $user_nav_item Array holding parts used to construct tab list item. * Passed by reference. */ echo apply_filters_ref_array( 'bp_get_displayed_user_nav_' . $user_nav_item->css_id, array( '
更新日志
版本 | 描述 |
---|---|
BuddyPress 1.1.0 | 介绍了。 |