/** * Print custom tab of settings for Stripe subpanel * * @return void * @since 1.0.0 */ public function print_panel() { $panel_template = YITH_WCSTRIPE_DIR . '/templates/admin/settings-tab.php'; if (!file_exists($panel_template)) { return; } global $current_section; $current_section = 'yith_wcstripe_gateway'; if (defined('YITH_WCSTRIPE_PREMIUM')) { $current_section .= YITH_WCStripe_Premium::addons_installed() ? '_addons' : '_advanced'; } WC_Admin_Settings::get_settings_pages(); if (!empty($_POST)) { $gateways = WC()->payment_gateways()->payment_gateways(); $gateways[YITH_WCStripe::$gateway_id]->process_admin_options(); } include_once $panel_template; }