aioseo_breadcrumbs_output

Purpose

This filter can be used to control the display of breadcrumbs (show or hide).

Arguments (1)

  1. $display (boolean) – Show or hide.

Example code snippet

The code snippet below is just an example of how this filter can be used. In the example below we’ll hide the breadcrumbs on pages.

// Hide breadcrumbs on pages.
add_filter( 'aioseo_breadcrumbs_output', 'aioseo_breadcrumbs_output' );
function aioseo_breadcrumbs_output( $display ) {
	if ( is_singular( 'page' ) ) {
		$display = false;
	}

	return $display;
}