is_astra_breadcrumb_trail( string $echo )

Deprecating is_astra_breadcrumb_trail function.


Description

Checking if breadcrumb with trail.

See also


Parameters

$echo

(string) (Required) Whether to echo or return.


Return

(string) breadcrumb markup


Source

File: classes/deprecated/deprecated-functions.php

function is_astra_breadcrumb_trail( $echo = true ) {
	if ( function_exists( 'astra_get_breadcrumb' ) ) {
		return astra_get_breadcrumb( $echo );
	}
	require ASTRA_EXT_DIR . '/addons/advanced-headers/classes/astra-breadcrumbs.php';
	if ( ! $echo ) {
		ob_start();
		astra_breadcrumb();
		return ob_get_clean();
	}
	echo astra_breadcrumb(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}

Changelog

Changelog
Version Description
3.6.2 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.