bp_get_group_create_button
Filters the HTML button for creating a group.
Description
Parameters (1)
- 0. $button_args (string)
- HTML button for creating a group.
Usage
- To run the hook, copy the example below.
- $button_args = apply_filters( 'bp_get_group_create_button', $button_args );
- if ( !empty( $button_args ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the bp_get_group_create_button callback
- function filter_bp_get_group_create_button( $button_args ) {
- // make filter magic happen here...
- return $button_args;
- };
- // add the filter
- add_filter( 'bp_get_group_create_button', 'filter_bp_get_group_create_button', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'bp_get_group_create_button', 'filter_bp_get_group_create_button', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /bp-groups/bp-groups-template.php
- return bp_get_button( apply_filters( 'bp_get_group_create_button', $button_args ) );