bbp_edit_topic

Is edit.

Description

do_action( 'bbp_edit_topic', (unknown) $topic_id, (unknown) $forum_id, (unknown) $anonymous_data, (unknown) $topic_author, (bool) $true ); 

Parameters (5)

0. $topic_id (unknown)
The topic id.
1. $forum_id (unknown)
The forum id.
2. $anonymous_data (unknown)
The anonymous data.
3. $topic_author (unknown)
The topic author.
4. $true (bool) => true
The true.

Usage

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

Defined (1)

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

/includes/topics/functions.php  
  1. do_action( 'bbp_edit_topic', $topic_id, $forum_id, $anonymous_data, $topic_author , true /** Is edit */ );