bb_shutdown

Create an API hook to run on shutdown.

Description

do_action( 'bb_shutdown' ); 

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'bb_shutdown' ); 
The following example is for adding a hook callback.
  1. // define the bb_shutdown callback 
  2. function action_bb_shutdown( ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'bb_shutdown', 'action_bb_shutdown', 10, 0 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'bb_shutdown', 'action_bb_shutdown', 10, 0 ); 

Defined (2)

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

/bp-forums/bp-forums-bbpress-sa.php  
  1. register_shutdown_function( function() { do_action( 'bb_shutdown' ); } ); 
/bp-forums/bbpress/bb-settings.php  
  1. do_action( 'bb_shutdown' );