bp_get_groups_group_type_base

Get the group type base slug.

Description

(string) bp_get_groups_group_type_base(); 

The base slug is the string used as the base prefix when generating group type directory URLs. For example, in example.com/groups/type/foo/, foo is the group type and type is the base slug.

Returns (string)


Usage

  1. if ( !function_exists( 'bp_get_groups_group_type_base' ) ) { 
  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_group_type_base(); 
  7.  

Defined (1)

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

/bp-groups/bp-groups-template.php  
  1. function bp_get_groups_group_type_base() { 
  2. /** 
  3. * Filters the group type URL base. 
  4. * @since 2.7.0 
  5. * @param string $base 
  6. */ 
  7. return apply_filters( 'bp_groups_group_type_base', _x( 'type', 'group type URL base', buddypress ) );