예제 #1
0
 /**
  * Loads a single instance of EDD Wish Lists
  *
  * This follows the PHP singleton design pattern.
  *
  * Use this function like you would a global variable, except without needing
  * to declare the global.
  *
  * @example <?php $edd_wish_lists = edd_wish_lists(); ?>
  *
  * @since 1.0
  *
  * @see EDD_Wish_Lists::get_instance()
  *
  * @return object Returns an instance of the EDD_Wish_Lists class
  */
 function edd_wish_lists()
 {
     return EDD_Wish_Lists::get_instance();
 }
예제 #2
0
 /**
  * Loads a single instance of EDD Wish Lists
  *
  * This follows the PHP singleton design pattern.
  *
  * Use this function like you would a global variable, except without needing
  * to declare the global.
  *
  * @example <?php $edd_wish_lists = edd_wish_lists(); ?>
  *
  * @since 1.0
  *
  * @see EDD_Wish_Lists::get_instance()
  *
  * @return object Returns an instance of the EDD_Wish_Lists class
  */
 function edd_wish_lists()
 {
     if (!class_exists('Easy_Digital_Downloads')) {
         if (!class_exists('EDD_Extension_Activation')) {
             require_once 'includes/class.extension-activation.php';
         }
         $activation = new EDD_Extension_Activation(plugin_dir_path(__FILE__), basename(__FILE__));
         $activation = $activation->run();
     } else {
         return EDD_Wish_Lists::get_instance();
     }
 }