Skip to content

rps_theme_framework_nav_menu_breadcrumb_include_archive_link

apply_filters( 'rps_theme_framework_nav_menu_breadcrumb_include_archive_link', bool $include, string $taxonomy, string $post_type, int $term_id )

Parameters

$include bool
True if the archive link should be included.

$taxonomy string
The taxonomy slug.

$post_type string
The post type slug.

$term_id int
The term id.

Example

add_filter( 'rps_theme_framework_nav_menu_breadcrumb_include_archive_link', function( $include, $taxonomy, $post_type, $term_id ){
	if ( $taxonomy === 'rps_directory' ) {
		return false;
	}
	return $include;
}, 10, 4 );