This filter is applied within the breadcrumb_navxt class in the find_posttypes() function. It provides a method to override the default hierarchy display choice for custom post types. This filter was introduced in version 6.0. It receives three parameters:
$default_hierarchy_display – (boolean)(required) The default choice to either display or not display a hierarchy for the custom post type
$post_type – (string)(optional) The name of the post type that the default hierarchy type applies to
$hierarchy_type – (string)(optional) The hierarchy type (BCN_DATE, BCN_POST_PARENT, or a valid taxonomy name) that Breadcrumb NavXT is going to use as the default for the custom post type
This filter is applied within the breadcrumb_navxt class in the find_posttypes() function. It provides a method to override the default hierarchy type for custom post types. This filter was introduced in version 6.0. It receives two parameters:
$hierarchy_type – (string)(required) The hierarchy type (BCN_DATE, BCN_POST_PARENT, or a valid taxonomy name) that Breadcrumb NavXT is going to use as the default for the custom post type
$post_type – (string)(optional) The name of the post type that the default hierarchy type applies to
This filter is applied within the breadcrumb_navxt_trail class in the maybe_add_post_type_arg() function. This filter was introduced in version 5.4. It receives three parameters:
$add_query_arg – (boolean)(required) The boolean decision whether or not to add the post type query argument to the URL to filter
$type – (string)(optional) The name of the post type that is under consideration for addition to the URL
$taxonomy – (string|NULL)(optional) The taxonomy name for the archive in question (may be null)
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
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