bp_get_groups_current_create_step

Returns the current group creation step.

Description

(string) bp_get_groups_current_create_step(); 

If none is found, returns an empty string.

Returns (string)

$current_create_step


Usage

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

Defined (1)

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

/bp-groups/bp-groups-template.php  
  1. function bp_get_groups_current_create_step() { 
  2. $bp =buddypress); 
  3.  
  4. if ( !empty( $bp->groups->current_create_step ) ) { 
  5. $current_create_step = $bp->groups->current_create_step; 
  6. } else { 
  7. $current_create_step = ''; 
  8.  
  9. /** 
  10. * Filters the current group creation step. 
  11. * If none is found, returns an empty string. 
  12. * @since 1.6.0 
  13. * @param string $current_create_step Current step in the group creation process. 
  14. */ 
  15. return apply_filters( 'bp_get_groups_current_create_step', $current_create_step );