bp_nouveau_groups_catch_button_args( array $button = array() )

Catch the arguments for buttons

Description

Parameters

$button

(Optional) The arguments of the button that BuddyPress is about to create.

Default value: array()

Return

(array) An empty array to stop the button creation process.

Source

File: bp-templates/bp-nouveau/includes/groups/functions.php

680
681
682
683
684
685
686
687
688
689
function bp_nouveau_groups_catch_button_args( $button = array() ) {
    /**
     * Globalize the arguments so that we can use it
     * in bp_nouveau_get_groups_buttons().
     */
    bp_nouveau()->groups->button_args = $button;
 
    // return an empty array to stop the button creation process
    return array();
}

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.