bbp_get_request

The main action used for handling theme-side GET requests.

Description

bbp_get_request(); 

Usage

  1. if ( !function_exists( 'bbp_get_request' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/core/sub-actions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_get_request(); 
  7.  

Defined (1)

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

/includes/core/sub-actions.php  
  1. function bbp_get_request() { 
  2.  
  3. // Bail if not a POST action 
  4. if ( ! bbp_is_get_request() ) 
  5. return; 
  6.  
  7. // Bail if no action 
  8. if ( empty( $_GET['action'] ) ) 
  9. return; 
  10.  
  11. // This dynamic action is probably the one you want to use. It narrows down 
  12. // the scope of the 'action' without needing to check it in your function. 
  13.  
  14. // Use this static action if you don't mind checking the 'action' yourself. 
  15. do_action( 'bbp_get_request', $_GET['action'] );