/**
  * Returns single instance of the class
  *
  * @since 1.0.0
  */
 public static function get_instance()
 {
     if (is_null(self::$instance)) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Esempio n. 2
0
function yith_ywev_init()
{
    /**
     * Load text domain and start plugin
     */
    load_plugin_textdomain('ywev', false, dirname(plugin_basename(__FILE__)) . '/languages/');
    // Load required classes and functions
    require_once YITH_YWEV_LIB_DIR . 'class.yith-ywev-plugin-fw-loader.php';
    require_once YITH_YWEV_LIB_DIR . 'class.yith-ywev-custom-types.php';
    require_once YITH_YWEV_LIB_DIR . 'class.yith-woocommerce-eu-vat.php';
    require_once YITH_YWEV_LIB_DIR . 'class.yith-tax-rates.php';
    require_once 'functions.php';
    YITH_YWEV_Plugin_FW_Loader::get_instance();
    // Let's start the game!
    YITH_WooCommerce_EU_VAT::get_instance();
}
Esempio n. 3
0
<?php

if (!defined('ABSPATH')) {
    exit;
}
include_once WC()->plugin_path() . '/includes/admin/reports/class-wc-admin-report.php';
?>


<tr valign="top">
	<th scope="row" class="titledesc">
		<?php 
echo esc_html($value['title']);
?>
	</th>

	<td class="forminp plugin-option">
		<div class="tax-report">
			<span class="description"><?php 
echo esc_html($value['desc']);
?>
</span>
			<?php 
YITH_WooCommerce_EU_VAT::get_instance()->get_report();
?>
		</div>
	</td>
</tr>