bbp_post_request

The WordPress Core bbp post request hook.

Description

add_action( 'bbp_post_request', (string) $bbp_do_ajax, (int) $int ); 

Parameters (2)

0. $bbp_do_ajax (string) => 'bbp_do_ajax'
The bbp do ajax.
1. $int (int) => 1
The int.

Usage

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

Defined (13)

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

/includes/core/actions.php  
  1. add_action( 'bbp_post_request', 'bbp_do_ajax', 1 ); 
  1. add_action( 'bbp_post_request', 'bbp_edit_topic_tag_handler', 1 ); 
  1. add_action( 'bbp_post_request', 'bbp_edit_user_handler', 1 ); 
  1. add_action( 'bbp_post_request', 'bbp_edit_forum_handler', 1 ); 
  1. add_action( 'bbp_post_request', 'bbp_edit_reply_handler', 1 ); 
  1. add_action( 'bbp_post_request', 'bbp_edit_topic_handler', 1 ); 
  1. add_action( 'bbp_post_request', 'bbp_merge_topic_handler', 1 ); 
  1. add_action( 'bbp_post_request', 'bbp_split_topic_handler', 1 ); 
  1. add_action( 'bbp_post_request', 'bbp_move_reply_handler', 1 ); 
  1. add_action( 'bbp_post_request', 'bbp_new_forum_handler', 10 ); 
  1. add_action( 'bbp_post_request', 'bbp_new_reply_handler', 10 ); 
  1. add_action( 'bbp_post_request', 'bbp_new_topic_handler', 10 ); 
/includes/core/sub-actions.php  
  1. do_action( 'bbp_post_request', $_POST['action'] );