set_<scheme>_cookie

The BuddyPress set scheme cookie hook.

Description

do_action( 'set_<scheme>_cookie', (unknown) $cookie, (unknown) $expire, (unknown) $expiration, (unknown) $user_id, (unknown) $scheme ); 

Parameters (5)

0. $cookie (unknown)
The cookie.
1. $expire (unknown)
The expire.
2. $expiration (unknown)
The expiration.
3. $user_id (unknown)
The user id.
4. $scheme (unknown)
The scheme.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'set_{$scheme}_cookie', $cookie, $expire, $expiration, $user_id, $scheme ); 
The following example is for adding a hook callback.
  1. // define the set_<scheme>_cookie callback 
  2. function action_set_scheme_cookie( $cookie, $expire, $expiration, $user_id, $scheme ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( "set_{$scheme}_cookie", 'action_set_scheme_cookie', 10, 5 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( "set_{$scheme}_cookie", 'action_set_scheme_cookie', 10, 5 ); 

Defined (1)

The action is defined in the following location(s).

/bp-forums/bbpress/bb-includes/backpress/class.wp-auth.php  
  1. do_action( 'set_' . $scheme . '_cookie', $cookie, $expire, $expiration, $user_id, $scheme );