/**
  * Plugin row meta.
  *
  * Add extra plugin row meta, these are links / meta below the plugin description.
  *
  * @since 1.0.2
  *
  * @param  array  $links List of existing links.
  * @param  string $file  Name of the current plugin being looped.
  * @return array         List of modified links.
  */
 public function add_plugin_row_meta($links, $file)
 {
     if ($file == plugin_basename(WooCommerce_Coupon_Generator()->file)) {
         $links[] = '<a href="https://shopplugins.com/plugins/category/woocommerce/" target="_blank">' . __('More WooCommerce plugins by Shop Plugins', 'woocommerce-coupon-generator') . '</a>';
     }
     return $links;
 }
     * Load the textdomain based on WP language.
     *
     * @since 1.0.0
     */
    public function load_textdomain()
    {
        $locale = apply_filters('plugin_locale', get_locale(), 'woocommerce-coupon-generator');
        // Load textdomain
        load_textdomain('woocommerce-coupon-generator', WP_LANG_DIR . '/woocommerce-coupon-generator/woocommerce-coupon-generator-' . $locale . '.mo');
        load_plugin_textdomain('woocommerce-coupon-generator', false, basename(dirname(__FILE__)) . '/languages');
    }
}
/**
 * The main function responsible for returning the WooCommerce_Coupon_Generator object.
 *
 * Use this function like you would a global variable, except without needing to declare the global.
 *
 * Example: <?php WooCommerce_Coupon_Generator()->method_name(); ?>
 *
 * @since 1.0.0
 *
 * @return  object  WooCommerce_Coupon_Generator class object.
 */
if (!function_exists('WooCommerce_Coupon_Generator')) {
    function WooCommerce_Coupon_Generator()
    {
        return WooCommerce_Coupon_Generator::instance();
    }
}
WooCommerce_Coupon_Generator();
 /**
  * Generator callback.
  *
  * Initialize and output the contents of the generator
  * page in the admin backend.
  *
  * @since 1.0.0
  */
 public function coupon_generator_callback()
 {
     require_once plugin_dir_path(WooCommerce_Coupon_Generator()->file) . 'includes/admin/class-wccg-generator.php';
     $coupon_generator = new WCCG_Generator();
     $coupon_generator->output_step();
 }