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 valuefalse
) - $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