bb_register_plugin_deactivation_hook

The BuddyPress bb register plugin deactivation hook function.

Description

bb_register_plugin_deactivation_hook( $file, $function ); 

Parameters (2)

0. $file
The file.
1. $function
The function.

Usage

  1. if ( !function_exists( 'bb_register_plugin_deactivation_hook' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-core.php'; 
  3.  
  4. // The file. 
  5. $file = null; 
  6.  
  7. // The function. 
  8. $function = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bb_register_plugin_deactivation_hook($file, $function); 
  12.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-core.php  
  1. function bb_register_plugin_deactivation_hook( $file, $function ) 
  2. $file = bb_plugin_basename( $file );