ddw_wcde_woocommerce_settings_link

Returns admin URL for WooCommerce settings, depending on WooCommerce branch (2.1.0+ or 2.0.x).

Description

(string) ddw_wcde_woocommerce_settings_link(); 

Returns (string)

String of admin URL.


Usage

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

Defined (1)

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

/includes/wcde-admin-extras.php  
  1. function ddw_wcde_woocommerce_settings_link() { 
  2.  
  3. return ddw_wcde_woocommerce_current() ? 'admin.php?page=wc-settings' : 'admin.php?page=woocommerce_settings'; 
  4.  
  5. } // end of function ddw_wcde_woocommerce_settings_link