bb_add_action

The BuddyPress bb add action function.

Description

bb_add_action( $tag, $function_to_add, (int) $priority = 10 ); 

Parameters (3)

0. $tag
The tag.
1. $function_to_add
The function to add.
2. $priority — Optional. (int) => 10
The priority.

Usage

  1. if ( !function_exists( 'bb_add_action' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-deprecated.php'; 
  3.  
  4. // The tag. 
  5. $tag = null; 
  6.  
  7. // The function to add. 
  8. $function_to_add = null; 
  9.  
  10. // The priority. 
  11. $priority = 10; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = bb_add_action($tag, $function_to_add, $priority); 
  15.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-deprecated.php  
  1. function bb_add_action($tag, $function_to_add, $priority = 10) { 
  2. bb_log_deprecated('function', __FUNCTION__, 'add_action'); 
  3. $args = func_get_args(); 
  4. return call_user_func_array('add_action', $args);