bcn_pick_post_term

The Breadcrumb NavXT bcn pick post term hook.

Description

apply_filters( 'bcn_pick_post_term', (unknown) $this_pick_post_term_id_type_taxonomy, (unknown) $id, (unknown) $type, (unknown) $taxonomy ); 

Parameters (4)

0. $this_pick_post_term_id_type_taxonomy (unknown)
The this pick post term id type taxonomy.
1. $id (unknown)
The id.
2. $type (unknown)
The type.
3. $taxonomy (unknown)
The taxonomy.

Usage

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

Defined (1)

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

/class.bcn_breadcrumb_trail.php  
  1. $term = apply_filters('bcn_pick_post_term', $this->pick_post_term($id, $type, $taxonomy), $id, $type, $taxonomy);