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:

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:

bcn_show_cpt_private

This filter is applied within the bcn_admin class in the admin_page() function. This filter is intended to allow users to override the default behavior of Breadcrumb NavXT to hide settings for non-public post types. This filter was introduced in version 4.3. It receives two parameters:

  • $public(boolean)(required) Whether or not the post type is a publicly visible post type as represented by the public property of the post type object
  • $name(string)(optional) The name of the post type
Updated:

bcn_show_tax_private

This filter is applied within the bcn_admin class in the admin_page() function. This filter is intended to allow users to override the default behavior of Breadcrumb NavXT to hide settings for non-public taxonomies. This filter was introduced in version 4.3. In version 6.0, a third parameter was added. It receives three parameters:

  • $public(boolean)(required) Whether or not the taxonomy is a publicly visible taxonomy as represented by the public property of the taxonomy object
  • $taxonomy_name(string)(optional) The name of the taxonomy
  • $posttype_name(string)(optional) The name of the post type that the taxonomy is available for, may be NULL if a post type is not available
Updated:

bcn_template_tags

This filter is applied within the bcn_breadcrumb class in the assemble() function. This filter was introduced in version 4.4. It receives three parameters:

  • $replacements(array)(required) The array of template tags and replacements. This array contains key value pairs, where a key is the template tag, and the corresponding value is the value to replace the tag with
  • $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

Related Articles

Updated: