bcn_post_terms

The Breadcrumb NavXT bcn post terms hook.

Description

apply_filters( 'bcn_post_terms', (unknown) $get_the_terms, (unknown) $taxonomy, (unknown) $id ); 

Parameters (3)

0. $get_the_terms (unknown) => get_the_terms($id, $taxonomy)
The get the terms.
1. $taxonomy (unknown)
The taxonomy.
2. $id (unknown)
The id.

Usage

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

Defined (1)

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

/class.bcn_breadcrumb_trail.php  
  1. $bcn_terms = apply_filters('bcn_post_terms', get_the_terms($id, $taxonomy), $taxonomy, $id);