bcn_breadcrumb_template

This filter is applied within the bcn_breadcrumb class in the set_template member function before passing into wp_kses() and then setting the internal $template property. This filter was introduced in 4.4. It receives three parameters:

  • $template(string)(required) The template that is being set for the 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