bp_nouveau_groups_catch_button_args( array $button = array() )

Catch the arguments for buttons


Parameters Parameters

$button

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

Default value: array()


Top ↑

Return Return

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


Source Source

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

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();
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.