Issue #2245 / Disable Integrations Tab if empty

This commit is contained in:
entr 2013-01-16 18:20:25 +02:00
parent 44013d4480
commit e33fb78cf6
1 changed files with 3 additions and 0 deletions

View File

@ -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);