Browse: Home / Functions /


learndash_get_breadcrumbs( int|WP_Post|null $post = null,  array|false $args = false )

Gets the breadcrumbs hierarchy.

Description #

Builds an array of breadcrumbs for the current LearnDash post.

Parameters #


(int|WP_Post|null) (Optional) WP_Post object. Default to global $post.

Default value: null


(array|false) (Optional) Arguments used to generate breadcrumbs. Default is false.

Default value: false

Return #

(array) The hierarchy of breadcrumbs.

Source #

File: themes/ld30/includes/helpers.php

Changelog #

Version Description
3.0.0 Introduced.