bp_action_variables

Return the value of $bp->action_variables.

Description

(array|bool) bp_action_variables(); 

Returns (array|bool)

$action_variables The action variables array, or false if the array is empty.


Usage

  1. if ( !function_exists( 'bp_action_variables' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_action_variables(); 
  7.  

Defined (1)

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

/bp-core/bp-core-template.php  
  1. function bp_action_variables() { 
  2. $bp =buddypress); 
  3. $action_variables = !empty( $bp->action_variables ) 
  4. ? $bp->action_variables 
  5. : false; 
  6.  
  7. /** 
  8. * Filters the value of $bp->action_variables. 
  9. * @since 1.0.0 
  10. * @param array|bool $action_variables Available action variables. 
  11. */ 
  12. return apply_filters( 'bp_action_variables', $action_variables );