bp_nouveau_group_header_buttons( array $args = array() )
Output the action buttons for the displayed group
Description
Parameters
- $args
-
(Optional) See bp_nouveau_wrapper() for the description of parameters.
Default value: array()
Source
File: bp-templates/bp-nouveau/includes/groups/template-tags.php
486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 | function bp_nouveau_group_header_buttons( $args = array () ) { $bp_nouveau = bp_nouveau(); $output = join( ' ' , bp_nouveau_get_groups_buttons( $args ) ); // On the group's header we need to reset the group button's global. if ( ! empty ( $bp_nouveau ->groups->group_buttons ) ) { unset( $bp_nouveau ->groups->group_buttons ); } ob_start(); /** * Fires in the group header actions section. * * @since BuddyPress 1.2.6 */ do_action( 'bp_group_header_actions' ); $output .= ob_get_clean(); if ( ! $output ) { return ; } if ( ! $args ) { $args = array ( 'classes' => array ( 'item-buttons' ) ); } bp_nouveau_wrapper( array_merge ( $args , array ( 'output' => $output ) ) ); } |
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.