Astra_Ext_Advanced_Headers_Markup::advanced_headers_breadcrumbs_markup()
Next Breadcrumbs
Description
If yoast SEO breadcrumbs are active loads their function else loads custom breadcrumbs.
Source
File: addons/advanced-headers/classes/class-astra-ext-advanced-headers-markup.php
public static function advanced_headers_breadcrumbs_markup() { $show_breadcrumb = Astra_Ext_Advanced_Headers_Loader::astra_advanced_headers_layout_option( 'breadcrumb' ); if ( ! $show_breadcrumb ) { return; } $id = Astra_Ext_Advanced_Headers_Data::get_current_page_header_ids(); $breadcrumb_old_version = get_post_meta( $id, 'astra-breadcrumb-old', true ); if ( true === apply_filters( 'astra_addon_advanced_headers_use_astra_breadcrumb_trail', false ) || 'true' !== $breadcrumb_old_version ) { astra_get_breadcrumb(); } else { $wpseo_option = get_option( 'wpseo_internallinks' ); if ( function_exists( 'yoast_breadcrumb' ) && $wpseo_option && true === $wpseo_option['breadcrumbs-enable'] ) { yoast_breadcrumb( '<div id="breadcrumbs" >', '</div>' ); } else { astra_breadcrumb(); } } }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |