bp_get_activate_slug

Return the activation slug.

Description

(string) bp_get_activate_slug(); 

Returns (string)


Usage

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

Defined (1)

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

/bp-members/bp-members-template.php  
  1. function bp_get_activate_slug() { 
  2. $bp =buddypress); 
  3.  
  4. if ( !empty( $bp->pages->activate->slug ) ) { 
  5. $slug = $bp->pages->activate->slug; 
  6. } elseif ( defined( 'BP_ACTIVATION_SLUG' ) ) { 
  7. $slug = BP_ACTIVATION_SLUG
  8. } else { 
  9. $slug = 'activate'; 
  10.  
  11. /** 
  12. * Filters the activation slug. 
  13. * @since 1.5.0 
  14. * @param string $slug Activation slug. 
  15. */