bbp_trash_forum

The WordPress Core bbp trash forum hook.

Description

add_action( 'bbp_trash_forum', (string) $bbp_trash_forum_topics, (int) $int ); 

Parameters (2)

0. $bbp_trash_forum_topics (string) => 'bbp_trash_forum_topics'
The bbp trash forum topics.
1. $int (int) => 10
The int.

Usage

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

Defined (3)

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

/includes/core/actions.php  
  1. add_action( 'bbp_trash_forum', 'bbp_trash_forum_topics', 10 ); 
  1. add_action( 'bbp_trash_forum', 'bbp_remove_forum_from_all_subscriptions' ); 
/includes/forums/functions.php  
  1. do_action( 'bbp_trash_forum', $forum_id );