backpress_set_cookie

Acts the same as core PHP setcookie() but its arguments are run through the backpress_set_cookie filter.

Description

backpress_set_cookie(); 

If the filter returns false, setcookie() isn't called.


Usage

  1. if ( !function_exists( 'backpress_set_cookie' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/backpress/functions.core.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = backpress_set_cookie(); 
  7.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/backpress/functions.core.php  
  1. function backpress_set_cookie() { 
  2. $args = func_get_args(); 
  3. if ( $args === false ) return; 
  4. call_user_func_array( 'setcookie', $args );