apply_filters( 'learndash_breadcrumbs', array $breadcrumbs )
Filters Breadcrumbs for the LearnDash post.
Description #
Parameters #
- $breadcrumbs
-
(array) Hierarchy of breadcrumbs.
Source #
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 #
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |