ddw_wcde_woocommerce_help_tab

Create and display plugin help tab.

Description

ddw_wcde_woocommerce_help_tab(); 

Usage

  1. if ( !function_exists( 'ddw_wcde_woocommerce_help_tab' ) ) { 
  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_help_tab(); 
  7.  

Defined (1)

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

/includes/wcde-admin-extras.php  
  1. function ddw_wcde_woocommerce_help_tab() { 
  2.  
  3. global $wcde_woocommerce_screen; 
  4.  
  5. $wcde_woocommerce_screen = get_current_screen(); 
  6.  
  7. /** Display help tabs only for WordPress 3.3 or higher and only on WooCommerce screen IDs */ 
  8. if ( ! class_exists( 'WP_Screen' ) 
  9. || ! $wcde_woocommerce_screen 
  10. || ! in_array( $wcde_woocommerce_screen->id, ddw_wcde_get_woocommerce_screen_ids() ) 
  11. || in_array( $wcde_woocommerce_screen->id, array( 'edit-product', 'edit-shop_coupon' ) ) 
  12. ) { 
  13.  
  14. return; 
  15.  
  16. } // end if 
  17.  
  18. /** Add the help tab */ 
  19. $wcde_woocommerce_screen->add_help_tab( array( 
  20. 'id' => 'wcde-woocommerce-help',  
  21. 'title' => __( 'WooCommerce German (de_DE)', 'woocommerce-german' ),  
  22. ) ); 
  23.  
  24. /** Add help sidebar */ 
  25.  
  26. } // end of function ddw_wcde_woocommerce_help_tab