bcn_li_attributes

The Breadcrumb NavXT bcn li attributes hook.

Description

apply_filters( 'bcn_li_attributes', (unknown) $li_class, (unknown) $breadcrumb_type, (unknown) $breadcrumb_get_id ); 

Parameters (3)

0. $li_class (unknown)
The li class.
1. $breadcrumb_type (unknown)
The breadcrumb type.
2. $breadcrumb_get_id (unknown)
The breadcrumb get id.

Usage

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

Defined (1)

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

/class.bcn_breadcrumb_trail.php  
  1. $li_attribs = apply_filters('bcn_li_attributes', $li_class, $breadcrumb->type, $breadcrumb->get_id());