Astra_Ext_Advanced_Headers_Meta::__construct()
Constructor
Description
Source
File: addons/advanced-headers/classes/class-astra-ext-advanced-headers-meta.php
public function __construct() { add_action( 'admin_head', array( $this, 'menu_highlight' ) ); add_action( 'load-post.php', array( $this, 'init_metabox' ) ); add_action( 'load-post-new.php', array( $this, 'init_metabox' ) ); add_action( 'astra_adv_headers_tabs_page-header_action', array( $this, 'page_header_tab' ), 10, 1 ); if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) { add_action( 'astra_adv_headers_tabs_site-header_action', array( $this, 'hfb_site_header_tab' ), 10, 1 ); } else { add_action( 'astra_adv_headers_tabs_site-header_action', array( $this, 'site_header_tab' ), 10, 1 ); } add_action( 'astra_adv_headers_tabs_display-rules_action', array( $this, 'display_rules_tab' ), 10, 1 ); add_action( 'astra_advanced_headers_settings_markup_after', array( $this, 'current_tab_holder' ) ); add_filter( 'redirect_post_location', array( $this, 'retain_currnt_tab' ) ); }
Expand full source code Collapse full source code View on Trac