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:

bcn_allowed_html

This filter is applied within the bcn_admin (by means of the mtekk_adminkit::wp_loaded()) and the bcn_breadcrumb class in the class constructor. Note that Breadcrumb NavXT itself registers a filter for this filter to load in extended attributes for select tags, it is advised that end users use a priority with value greater than 1 to prevent unexpected results. This filter was introduced in version 4.4. It receives one parameter:

  • $allowed_html(array)(required) The array result of acceptable HTML tags and attributes. See the WordPress codex for wp_kses() for an example of this array structure

Related Articles

Updated:

bcn_breadcrumb_types

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

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

bcn_breadcrumb_url

This filter is applied within the bcn_breadcrumb class in the set_url member function before passing into esc_url() and then setting the internal $url property. This filter was introduced in 4.3. In 4.4 two additional parameters were made available. It receives three parameters:

  • $url(string)(required) The URL 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 not suitable ID exists

Related Articles

Updated: