From e33fb78cf6329fa09d15f323e0294b48bc93b949 Mon Sep 17 00:00:00 2001 From: entr Date: Wed, 16 Jan 2013 18:20:25 +0200 Subject: [PATCH] Issue #2245 / Disable Integrations Tab if empty --- admin/woocommerce-admin-settings.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/admin/woocommerce-admin-settings.php b/admin/woocommerce-admin-settings.php index a0074bd6ec5..2cb9c14bdd1 100644 --- a/admin/woocommerce-admin-settings.php +++ b/admin/woocommerce-admin-settings.php @@ -226,6 +226,9 @@ if ( ! function_exists( 'woocommerce_settings' ) ) { 'email' => __( 'Emails', 'woocommerce' ), 'integration' => __( 'Integration', 'woocommerce' ) ); + + if ( ! count( $woocommerce->integrations->get_integrations() ) ) + unset( $tabs['integration'] ); $tabs = apply_filters('woocommerce_settings_tabs_array', $tabs);