bcn_pick_post_term

This filter is applied within the bcn_breadcrumb_trail class in the post_hierarchy() function. This filter was introduced in version 5.4 with three parameters. In version 5.5 a fourth parameter was added. It receives four parameters:

  • $term(WP_Term|boolean)(required) The term object returned by bcn_breadcrumb_trail::pick_post_terms() to filter (note that this parameter may be the boolean value false)
  • $id(id)(optional) The ID of the post this term is for
  • $type(string)(optional) The post type name for the post represented by the ID in the second parameter
  • $taxonomy(string)(optional) The name of the taxonomy the term belongs to
Updated:

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. It receives one parameter:

  • $opts(array)(required) The options 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 not suitable ID exists
Updated: