breadcrumbspress_nav_aria_label

Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

Definition
apply_filters( "breadcrumbspress_nav_aria_label", $label );
Arguments
Name
Type
Description
$label
string
Navigation label; the default is breadcrumb.
Returns
Return the navigation label as a string.

Filters the accessible label on the breadcrumb navigation element.

The renderer escapes the label for the HTML attribute.

Example

This example registers a callback for the filter. Adapt the values and conditions to your site.

add_filter( 'breadcrumbspress_nav_aria_label', function( $label ) {
    return 'Site breadcrumbs';
}, 10, 1 );
Rate this reference
0
0
2

You are not allowed to rate this post.

Leave a Comment

0
0
0
0
0
0
0
0
0