yith_wishlist_constructor

The YITH WooCommerce Wishlist yith wishlist constructor function.

Description

yith_wishlist_constructor(); 

Usage

  1. if ( !function_exists( 'yith_wishlist_constructor' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'yith-woocommerce-wishlist/init.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = yith_wishlist_constructor(); 
  7.  

Defined (1)

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

/init.php  
  1. function yith_wishlist_constructor() { 
  2.  
  3. load_plugin_textdomain( 'yith-woocommerce-wishlist', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); 
  4.  
  5. // Load required classes and functions 
  6. require_once( YITH_WCWL_INC . 'functions.yith-wcwl.php' ); 
  7. require_once( YITH_WCWL_INC . 'class.yith-wcwl.php' ); 
  8. require_once( YITH_WCWL_INC . 'class.yith-wcwl-init.php' ); 
  9. require_once( YITH_WCWL_INC . 'class.yith-wcwl-install.php' ); 
  10.  
  11. if ( is_admin() ) { 
  12. require_once( YITH_WCWL_INC . 'class.yith-wcwl-admin-init.php' ); 
  13.  
  14. if ( get_option( 'yith_wcwl_enabled' ) == 'yes' ) { 
  15. require_once( YITH_WCWL_INC . 'class.yith-wcwl-ui.php' ); 
  16. require_once( YITH_WCWL_INC . 'class.yith-wcwl-shortcode.php' ); 
  17.  
  18. // Let's start the game! 
  19.  
  20. /** 
  21. * @deprecated 
  22. */ 
  23. global $yith_wcwl; 
  24. $yith_wcwl = YITH_WCWL();