hooks(); return self::$_instance; } public function hooks() { add_action('agency_ecommerce_top_header', array($this, 'agency_ecommerce_top_header_action'), 10); add_action('agency_ecommerce_top_header_store_information', array($this, 'agency_ecommerce_top_header_store_information_action'), 10); add_action('agency_ecommerce_top_header_menu', array($this, 'agency_ecommerce_top_header_menu_action'), 10); add_action('agency_ecommerce_top_header_current_date', array($this, 'agency_ecommerce_top_header_current_date_action'), 10); } public function agency_ecommerce_top_header_action() { // Top header status. $header_status = agency_ecommerce_get_option('show_top_header'); if (1 != $header_status) { return; } ?>