BP_Buttons_Group::__construct( array $args = array() )
Constructor
Description
Parameters
- $args
-
(Optional) array having the following parameters { @type string $id A string to use as the unique ID for the button. Required. @type int $position Where to insert the Button. Defaults to 99. @type string $component The Component's the button is build for (eg: Activity, Groups..). Required. @type bool $must_be_logged_in Whether the button should only be displayed to logged in users. Defaults to True. @type bool $block_self Optional. True if the button should be hidden when a user is viewing his own profile. Defaults to False. @type string $parent_element Whether to use a wrapper. Defaults to false. @type string $parent_attr set an array of attributes for the parent element. @type string $button_element Set this to 'button', 'img', or 'a', defaults to anchor. @type string $button_attr Any attributes required for the button_element @type string $link_text The text of the link. Required. }
Default value: array()
Source
File: bp-templates/bp-nouveau/includes/classes.php
public function __construct( $args = array() ) { foreach ( $args as $arg ) { $this->set( $arg ); } }
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.