learndash_breadcrumbs

apply_filters( 'learndash_breadcrumbs',  array $breadcrumbs )

Filters Breadcrumbs for the LearnDash post.


Description #


Parameters #

$breadcrumbs

(array) Hierarchy of breadcrumbs.


Source #

File: themes/ld30/includes/helpers.php


Examples #

 <?php
/**
 * Example usage for learndash_breadcrumbs filter.
 */
add_filter(
	'learndash_breadcrumbs',
	function( $breadcrumbs ) {
		// May add any custom logic using $breadcrumbs.

		// Always return $breadcrumbs.
		return $breadcrumbs;
	}
);