bbp_toggle_topic_admin

The bbPress bbp toggle topic admin hook.

Description

do_action( 'bbp_toggle_topic_admin', (unknown) $success, (unknown) $post_data, (unknown) $action, (unknown) $message ); 

Parameters (4)

0. $success (unknown)
The success.
1. $post_data (unknown)
The post data.
2. $action (unknown)
The action.
3. $message (unknown)
The message.

Usage

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

Defined (1)

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

/includes/admin/topics.php  
  1. do_action( 'bbp_toggle_topic_admin', $success, $post_data, $action, $message );