bp_nouveau_member_header_buttons (数组args美元数组()

输出显示的用户配置文件的操作按钮

描述

参数

args美元

数组(可选)看到bp_nouveau_wrapper ()的参数说明。

默认值:数组()

文件:bp-templates / bp-nouveau /包括/ / template-tags.php成员

函数bp_nouveau_member_header_buttons($args = array()) {$bp_nouveau = bp_nouveau();If (bp_is_user()) {$args['type'] = 'profile';} else {$args['type'] = 'header';//我们不需要这个'type'在header动作中}$output = join(' ', bp_nouveau_get_members_buttons($args));/** *在成员的头部,我们需要重置组按钮的全局*一旦显示为友方组件将使用成员的循环*/ if (!Empty ($bp_nouveau->成员->member_buttons)) {unset($bp_nouveau->成员->member_buttons);} ob_start ();/** *在成员头动作节中触发。* * @since BuddyPress 1.2.6 */ do_action('bp_member_header_actions');输出美元。= ob_get_clean ();如果(! $output ) { return; } if ( ! $args ) { $args = array( 'id' => 'item-buttons', 'classes' => false, ); } bp_nouveau_wrapper( array_merge( $args, array( 'output' => $output ) ) ); }

更新日志

更新日志
版本 描述
BuddyPress 3.0.0 介绍了。

问题吗?

我们总是很乐意帮助您解决代码或其他问题!搜索我们的开发人员文档联络支持,或与我们联系销售团队