bp_nouveau_member_header_buttons( array $args = array() )

Output the action buttons for the displayed user profile

Description

Parameters

$args

(Optional) See bp_nouveau_wrapper() for the description of parameters.

Default value: array()

Source

File: bp-templates/bp-nouveau/includes/members/template-tags.php

130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
function bp_nouveau_member_header_buttons( $args = array() ) {
    $bp_nouveau = bp_nouveau();
 
    if ( bp_is_user() ) {
        $args['type'] = 'profile';
    } else {
        $args['type'] = 'header';// we have no real need for this 'type' on header actions
    }
 
    $output = join( ' ', bp_nouveau_get_members_buttons( $args ) );
 
    /**
     * On the member's header we need to reset the group button's global
     * once displayed as the friends component will use the member's loop
     */
    if ( ! empty( $bp_nouveau->members->member_buttons ) ) {
        unset( $bp_nouveau->members->member_buttons );
    }
 
    ob_start();
    /**
     * Fires in the member header actions section.
     *
     * @since BuddyPress 1.2.6
     */
    do_action( 'bp_member_header_actions' );
    $output .= ob_get_clean();
 
    if ( ! $output ) {
        return;
    }
 
    if ( ! $args ) {
        $args = array(
            'id'      => 'item-buttons',
            'classes' => false,
        );
    }
 
    bp_nouveau_wrapper( array_merge( $args, array( 'output' => $output ) ) );
}

Changelog

Changelog
Version Description
BuddyPress 3.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.