Astra_Builder_Header::global_astra_header()
Remove complete header Support on basis of meta option.
Description
Return
(void)
Source
File: inc/builder/markup/class-astra-builder-header.php
public function global_astra_header() { $display = get_post_meta( (int) astra_get_post_id(), 'ast-global-header-display', true ); $display = apply_filters( 'astra_header_display', $display ); if ( 'disabled' === $display ) { remove_action( 'astra_header', 'astra_header_markup' ); /** @psalm-suppress DocblockTypeContradiction */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( true === Astra_Builder_Helper::$is_header_footer_builder_active ) { // phpcs:ignore PHPCompatibility.Keywords.NewKeywords.t_namespaceFound, PHPCompatibility.LanguageConstructs.NewLanguageConstructs.t_ns_separatorFound remove_action( 'astra_header', array( $this, 'header_builder_markup' ) ); // phpcs:ignore PHPCompatibility.Keywords.NewKeywords.t_namespaceFound, PHPCompatibility.LanguageConstructs.NewLanguageConstructs.t_ns_separatorFound } } }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |