groups_group_status_before_save
The BuddyPress groups group status before save hook.
Description
Parameters (2)
- 0. $this_status (unknown)
- The this status.
- 1. $this_id (unknown)
- The this id.
Usage
- To run the hook, copy the example below.
- $this_status = apply_filters( 'groups_group_status_before_save', $this_status, $this_id );
- if ( !empty( $this_status ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the groups_group_status_before_save callback
- function filter_groups_group_status_before_save( $this_status, $this_id ) {
- // make filter magic happen here...
- return $this_status;
- };
- // add the filter
- add_filter( 'groups_group_status_before_save', 'filter_groups_group_status_before_save', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'groups_group_status_before_save', 'filter_groups_group_status_before_save', 10, 2 );
Defined (1)
The filter is defined in the following location(s).
- /bp-groups/classes/class-bp-groups-group.php
- $this->status = apply_filters( 'groups_group_status_before_save', $this->status, $this->id );