bbp_get_request()

The main action used for handling theme-side GET requests

Description

Source

File: bp-forums/core/sub-actions.php

383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
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

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.