bp_action_variables()

Return the value of $bp->action_variables.

Description

Return

(array|bool) $action_variables The action variables array, or false if the array is empty.

Source

File: bp-core/bp-core-template.php

1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
function bp_action_variables() {
    $bp               = buddypress();
    $action_variables = !empty( $bp->action_variables )
        ? $bp->action_variables
        : false;
 
    /**
     * Filters the value of $bp->action_variables.
     *
     * @since BuddyPress 1.0.0
     *
     * @param array|bool $action_variables Available action variables.
     */
    return apply_filters( 'bp_action_variables', $action_variables );
}

Changelog

Changelog
Version Description
BuddyPress 1.0.0 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.