bb_remove_action

The BuddyPress bb remove action function.

Description

bb_remove_action( $tag, $function_to_remove, (int) $priority = 10 ); 

Parameters (3)

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

Usage

  1. if ( !function_exists( 'bb_remove_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 remove. 
  8. $function_to_remove = null; 
  9.  
  10. // The priority. 
  11. $priority = 10; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = bb_remove_action($tag, $function_to_remove, $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_remove_action($tag, $function_to_remove, $priority = 10) { 
  2. bb_log_deprecated('function', __FUNCTION__, 'remove_action'); 
  3. $args = func_get_args(); 
  4. return call_user_func_array('remove_action', $args);