bp_get_email_post_type_labels

Return labels used by the email post type.

Description

(array) bp_get_email_post_type_labels(); 

Returns (array)


Usage

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

Defined (1)

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

/bp-core/bp-core-functions.php  
  1. function bp_get_email_post_type_labels() { 
  2.  
  3. /** 
  4. * Filters email post type labels. 
  5. * @since 2.5.0 
  6. * @param array $value Associative array (name => label). 
  7. */ 
  8. 'add_new' => _x( 'Add New', 'email post type label', buddypress ),  
  9. 'add_new_item' => _x( 'Add a New Email', 'email post type label', buddypress ),  
  10. 'all_items' => _x( 'All Emails', 'email post type label', buddypress ),  
  11. 'edit_item' => _x( 'Edit Email', 'email post type label', buddypress ),  
  12. 'filter_items_list' => _x( 'Filter email list', 'email post type label', buddypress ),  
  13. 'items_list' => _x( 'Email list', 'email post type label', buddypress ),  
  14. 'items_list_navigation' => _x( 'Email list navigation', 'email post type label', buddypress ),  
  15. 'menu_name' => _x( 'Emails', 'email post type name', buddypress ),  
  16. 'name' => _x( 'BuddyPress Emails', 'email post type label', buddypress ),  
  17. 'new_item' => _x( 'New Email', 'email post type label', buddypress ),  
  18. 'not_found' => _x( 'No emails found', 'email post type label', buddypress ),  
  19. 'not_found_in_trash' => _x( 'No emails found in Trash', 'email post type label', buddypress ),  
  20. 'search_items' => _x( 'Search Emails', 'email post type label', buddypress ),  
  21. 'singular_name' => _x( 'Email', 'email post type singular name', buddypress ),  
  22. 'uploaded_to_this_item' => _x( 'Uploaded to this email', 'email post type label', buddypress ),  
  23. 'view_item' => _x( 'View Email', 'email post type label', buddypress ),  
  24. ) );