breadcrumbspress_render_tweak_hide
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!
Pro
Definition
apply_filters( "breadcrumbspress_render_tweak_hide", $hide );
Arguments
Name
Type
Description
$hide
false|integer
False to disable hiding, or the item limit.
Returns
Return false or an integer limit.
Filters the limit used for hiding items in long breadcrumb trails.
This filter runs only when premium code is available. Limits below four are raised to four; hiding is disabled when the trail does not exceed the limit.
This filter requires BreadcrumbsPress Pro.
Example
This example registers a callback for the filter. Adapt the values and conditions to your site.
add_filter( 'breadcrumbspress_render_tweak_hide', function( $hide ) {
return 5;
}, 10, 1 );