bp_core_get_directory_page_default_titles

Get the default page titles for BP directory pages.

Description

(array) bp_core_get_directory_page_default_titles(); 

Returns (array)


Usage

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

Defined (1)

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

/bp-core/bp-core-functions.php  
  1. function bp_core_get_directory_page_default_titles() { 
  2. $page_default_titles = array( 
  3. 'activity' => _x( 'Activity', 'Page title for the Activity directory.', buddypress ),  
  4. 'groups' => _x( 'Groups', 'Page title for the Groups directory.', buddypress ),  
  5. 'blogs' => _x( 'Sites', 'Page title for the Sites directory.', buddypress ),  
  6. 'members' => _x( 'Members', 'Page title for the Members directory.', buddypress ),  
  7. 'activate' => _x( 'Activate', 'Page title for the user activation screen.', buddypress ),  
  8. 'register' => _x( 'Register', 'Page title for the user registration screen.', buddypress ),  
  9. ); 
  10.  
  11. /** 
  12. * Filters the default page titles array 
  13. * @since 2.7.0 
  14. * @param array $page_default_titles the array of default WP (post_title) titles. 
  15. */