bp_get_members_member_type_base

Get the member type base slug.

Description

(string) bp_get_members_member_type_base(); 

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

Returns (string)


Usage

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

Defined (1)

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

/bp-members/bp-members-template.php  
  1. function bp_get_members_member_type_base() { 
  2. /** 
  3. * Filters the member type URL base. 
  4. * @since 2.3.0 
  5. * @param string $base 
  6. */ 
  7. return apply_filters( 'bp_members_member_type_base', _x( 'type', 'member type URL base', buddypress ) );