groups_premote_member
The BuddyPress groups premote member hook.
Description
Parameters (3)
- 0. $group_id (unknown)
- The group id.
- 1. $user_id (unknown)
- The user id.
- 2. $status (unknown)
- The status.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'groups_premote_member', $group_id, $user_id, $status );
- The following example is for adding a hook callback.
- // define the groups_premote_member callback
- function action_groups_premote_member( $group_id, $user_id, $status ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'groups_premote_member', 'action_groups_premote_member', 10, 3 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'groups_premote_member', 'action_groups_premote_member', 10, 3 );
Defined (1)
The action is defined in the following location(s).
- /bp-groups/bp-groups-functions.php
- do_action( 'groups_premote_member', $group_id, $user_id, $status );