ddw_wcde_add_woocommerce_settings_tab

Add our own settings tab to WooCommerce settings page.

Description

(string) ddw_wcde_add_woocommerce_settings_tab( (string) $tabs ); 

Returns (string)

String of settings tab label.

Parameters (1)

0. $tabs (string)
The tabs.

Usage

  1. if ( !function_exists( 'ddw_wcde_add_woocommerce_settings_tab' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-german-de_de/includes/wcde-settings-woocommerce.php'; 
  3.  
  4. // The tabs. 
  5. $tabs = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = ddw_wcde_add_woocommerce_settings_tab($tabs); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/wcde-settings-woocommerce.php  
  1. function ddw_wcde_add_woocommerce_settings_tab( $tabs ) { 
  2.  
  3. $tabs[ 'wcdetranslations' ] = __( 'German Translations', 'woocommerce-german' ); 
  4.  
  5. return $tabs; 
  6.  
  7. } // end of function ddw_wcde_add_woocommerce_settings_tab