Astra_Builder_Header::primary_header()
Call primary header UI.
Description
Source
File: inc/builder/markup/class-astra-builder-header.php
public function primary_header() { $display = get_post_meta( get_the_ID(), 'ast-main-header-display', true ); $display = apply_filters( 'ast_main_header_display', $display ); if ( 'disabled' !== $display ) { if ( astra_wp_version_compare( '5.4.99', '>=' ) ) { get_template_part( 'template-parts/header/builder/header', 'row', array( 'row' => 'primary', ) ); } else { set_query_var( 'row', 'primary' ); get_template_part( 'template-parts/header/builder/header', 'row' ); } } }
Expand full source code Collapse full source code View on Trac