Browse: Home / Hooks /

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 #

Note: Extended code example below not guaranteed, you may need to consult with a developer

 <?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;
	}
);
 

Changelog #

Changelog
Version Description
3.0.0 Introduced.