bcn_breadcrumb_trail_object

The Breadcrumb NavXT bcn breadcrumb trail object hook.

Description

apply_filters( 'bcn_breadcrumb_trail_object', (unknown) $bcn_breadcrumb_trail ); 

Parameters (1)

0. $bcn_breadcrumb_trail (unknown)
The bcn breadcrumb trail.

Usage

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

Defined (1)

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

/breadcrumb-navxt.php  
  1. $breadcrumb_navxt = new breadcrumb_navxt(apply_filters('bcn_breadcrumb_trail_object', $bcn_breadcrumb_trail));