bp_nouveau_members_loop_buttons( array $args = array() )
Output the action buttons in member loops
Parameters Parameters
- $args
-
(array) (Optional) See bp_nouveau_wrapper() for the description of parameters.
Default value: array()
Source Source
File: bp-templates/bp-nouveau/includes/members/template-tags.php
function bp_nouveau_members_loop_buttons( $args = array() ) { if ( empty( $GLOBALS['members_template'] ) ) { return; } $args['type'] = 'loop'; $action = 'bp_directory_members_actions'; // Specific case for group members. if ( bp_is_active( 'groups' ) && bp_is_group_members() ) { $args['type'] = 'group_member'; $action = 'bp_group_members_list_item_action'; } elseif ( bp_is_active( 'friends' ) && bp_is_user_friend_requests() ) { $args['type'] = 'friendship_request'; $action = 'bp_friend_requests_item_action'; } $output = join( ' ', bp_nouveau_get_members_buttons( $args ) ); ob_start(); /** * Fires inside the members action HTML markup to display actions. * * @since 1.1.0 */ do_action( $action ); $output .= ob_get_clean(); if ( ! $output ) { return; } bp_nouveau_wrapper( array_merge( $args, array( 'output' => $output ) ) ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |