bbp_get_topic_tag_tax_labels

Return array of labels used by the topic-tag taxonomy.

Description

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

Returns (array)

Parameters (1)

0. $array — Optional. (callback) => array( 'name' => __( 'Topic Tags', 'bbpress' ), 'singular_name' => __( 'Topic Tag', 'bbpress' ), 'search_items' => __( 'Search Tags', 'bbpress' ), 'popular_items' => __( 'Popular Tags', 'bbpress' ), 'all_items' => __( 'All Tags', 'bbpress' ), 'edit_item' => __( 'Edit Tag', 'bbpress' ), 'update_item' => __( 'Update Tag', 'bbpress' ), 'add_new_item' => __( 'Add New Tag', 'bbpress' ), 'new_item_name' => __( 'New Tag Name', 'bbpress' ), 'view_item' => __( 'View Topic Tag', 'bbpress' ) )
The array.

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( 'bbp_get_topic_tag_tax_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 bbp_get_topic_tag_tax_labels callback 
  2. function filter_bbp_get_topic_tag_tax_labels( $array ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bbp_get_topic_tag_tax_labels', 'filter_bbp_get_topic_tag_tax_labels', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bbp_get_topic_tag_tax_labels', 'filter_bbp_get_topic_tag_tax_labels', 10, 1 ); 

Defined (1)

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

/includes/topics/template.php  
  1. return apply_filters( 'bbp_get_topic_tag_tax_labels', array(