bbp_get_request()
The main action used for handling theme-side GET requests
Description
Source
File: bp-forums/core/sub-actions.php
function bbp_get_request() { // Bail if not a POST action if ( ! bbp_is_get_request() ) return; // Bail if no action if ( empty( $_GET['action'] ) ) return; // This dynamic action is probably the one you want to use. It narrows down // the scope of the 'action' without needing to check it in your function. do_action( 'bbp_get_request_' . $_GET['action'] ); // Use this static action if you don't mind checking the 'action' yourself. do_action( 'bbp_get_request', $_GET['action'] ); }
Changelog
Version | Description |
---|---|
bbPress (r4550) | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.