Filters the breadcrumb items array before rendering.
Description
Allows developers to modify, add, or remove breadcrumb items.
Parameters
$breadcrumb_itemsarray[]
{ Array of breadcrumb item data. @type string $label The breadcrumb text. @type string $url Optional. The breadcrumb link URL. @type bool $allow_html Optional. Whether to allow HTML in the label. When true, the label will be sanitized with wp_kses_post(), allowing only safe HTML tags. When false or omitted, all HTML will be escaped with esc_html(). Default false.}
$labelstring
The breadcrumb text.
$urlstring
Optional. The breadcrumb link URL.
$allow_htmlbool
Optional. Whether to allow HTML in the label. When true, the label will be sanitized with wp_kses_post(), allowing only safe HTML tags. When false or omitted, all HTML will be escaped with esc_html(). Default false.
174* @type bool$allow_html Optional. Whether to allow HTML in the label.175* When true, the label will be sanitized with wp_kses_post(),176* allowing only safe HTML tags. When falseor omitted, all HTML177* will be escaped with esc_html().Defaultfalse.178*}179*/180$breadcrumb_items=apply_filters('block_core_breadcrumbs_items',$breadcrumb_items);181182if(empty($breadcrumb_items)){183return'';184}185186$wrapper_attributes=get_block_wrapper_attributes(
History
Introduced in 7.0.0. Unchanged from 7.0.4 through 7.1.0.