bcn_post_terms

This filter is applied within the breadcrumb_navxt_trail class in the post_terms() function. This filter was introduced in version 5.4. It receives three parameters:

  • $terms(array)(required) The array of term objects returned by get_the_terms() to filter
  • $taxonomy(string)(optional) The name of the taxonomy for the terms
  • $id(int)(optional) The ID of the post the terms are for

Related Articles

Updated:

bcn_type_archive_post_type

This filter is applied within the breadcrumb_navxt_trail class in the type_archive() function. This filter was introduced in version 5.2. It receives one parameter:

  • $post_type(string)(required) The name of the post type to use for the post type archive breadcrumb
Updated:

bcn_settings_init

This filter is applied within the breadcrumb_navxt class in the wp_loaded() function. This filter was introduced in version 5.0. In 7.0, this filter was moved to the setup_setting_defaults() function and the array passed into the filter is now a settings (compliant with the mtekk/adminKit/setting interface) array instead of opts array. It receives one parameter:

  • $settings(array)(required) The settings array for Breadcrumb NavXT
Updated:

bcn_li_attributes

This filter is applied within the bcn_breadcrumb_trail class in the display_list() function. This filter was introduced in version 5.0. This filter was deprecated in version 6.0, use the new bcn_display_attributes filter instead. It receives three parameters:

  • $li_attributes(string)(required) The attributes placed in the li tag that wraps the each breadcrumb
  • $type(array)(optional) The array of type strings for the breadcrumb
  • $id(int|NULL)(optional) The ID of the resource represented by the breadcrumb, will be NULL if no suitable ID exists
Updated:

bcn_breadcrumb_trail_object

This filter is applied before instantiating the breadcrumb_navxt class. This filter is intended to allow users to extend the bcn_breadcrumb_trail class and still use the existing admin interfaces. This filter was introduced in version 5.0. It receives one parameter:

  • $breadcrumb_trail(bcn_breadcrumb_trail)(required) The instance of bcn_breadcrumb_trail that breadcrumb_navxt class will use
Updated: