hooks(); return self::$_instance; } public function hooks() { // Top header status. $show_top_header = (boolean)agency_ecommerce_get_option('show_top_header'); if (!$show_top_header) { return; } 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() { ?>