bp_get_email_tax_type_labels

Filters email type taxonomy labels.

Description

apply_filters( 'bp_get_email_tax_type_labels', (callback) $array ); 

Parameters (1)

0. $array — Optional. (callback) => array( 'add_new_item' => _x( 'New Email Situation', 'email type taxonomy label', 'buddypress' ), 'all_items' => _x( 'All Email Situations', 'email type taxonomy label', 'buddypress' ), 'edit_item' => _x( 'Edit Email Situations', 'email type taxonomy label', 'buddypress' ), 'items_list' => _x( 'Email list', 'email type taxonomy label', 'buddypress' ), 'items_list_navigation' => _x( 'Email list navigation', 'email type taxonomy label', 'buddypress' ), 'menu_name' => _x( 'Situations', 'email type taxonomy label', 'buddypress' ), 'name' => _x( 'Situation', 'email type taxonomy name', 'buddypress' ), 'new_item_name' => _x( 'New email situation name', 'email type taxonomy label', 'buddypress' ), 'not_found' => _x( 'No email situations found.', 'email type taxonomy label', 'buddypress' ), 'no_terms' => _x( 'No email situations', 'email type taxonomy label', 'buddypress' ), 'popular_items' => _x( 'Popular Email Situation', 'email type taxonomy label', 'buddypress' ), 'search_items' => _x( 'Search Emails', 'email type taxonomy label', 'buddypress' ), 'singular_name' => _x( 'Email', 'email type taxonomy singular name', 'buddypress' ), 'update_item' => _x( 'Update Email Situation', 'email type taxonomy label', 'buddypress' ), 'view_item' => _x( 'View Email Situation', 'email type taxonomy label', 'buddypress' ), )
Associative array (name => label).

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( 'bp_get_email_tax_type_labels', $array ); 
  2.  
  3. if ( !empty( $array ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the bp_get_email_tax_type_labels callback 
  2. function filter_bp_get_email_tax_type_labels( $array ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bp_get_email_tax_type_labels', 'filter_bp_get_email_tax_type_labels', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bp_get_email_tax_type_labels', 'filter_bp_get_email_tax_type_labels', 10, 1 ); 

Defined (1)

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

/bp-core/bp-core-functions.php  
  1. return apply_filters( 'bp_get_email_tax_type_labels', array(