| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: Woo Additional Terms |
| 4 |
Plugin URI: https://www.mypreview.one |
| 5 |
Description: Add additional terms and condition checkbox into WooCommerce Checkout. |
| 6 |
Version: 1.0.1 |
| 7 |
Author: Mahdi Yazdani |
| 8 |
Author URI: https://www.mypreview.one |
| 9 |
Text Domain: woo-additional-terms |
| 10 |
Domain Path: /languages |
| 11 |
License: GPL2 |
| 12 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 13 |
|
| 14 |
Woo Additional Terms is free software: you can redistribute it and/or modify |
| 15 |
it under the terms of the GNU General Public License as published by |
| 16 |
the Free Software Foundation, either version 2 of the License, or |
| 17 |
any later version. |
| 18 |
|
| 19 |
Woo Additional Terms is distributed in the hope that it will be useful, |
| 20 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 22 |
GNU General Public License for more details. |
| 23 |
|
| 24 |
You should have received a copy of the GNU General Public License |
| 25 |
along with Woo Additional Terms. If not, see https://www.gnu.org/licenses/gpl-2.0.html. |
| 26 |
*/ |
| 27 |
// Prevent direct file access |
| 28 |
defined( 'ABSPATH' ) or exit; |
| 29 |
// Check the requirements of plugin (first step). |
| 30 |
require_once dirname( __FILE__ ) . '/includes/requirements.php'; |
| 31 |
// WooCommerce Store Vacation Class. |
| 32 |
require_once dirname( __FILE__ ) . '/includes/WooAdditionalTerms.php'; |
| 33 |
// Retrieve plugin option value(s). |
| 34 |
require_once dirname( __FILE__ ) . '/includes/front-end.php'; |
| 35 |
require_once dirname( __FILE__ ) . '/includes/back-end.php'; |
| 36 |
if ( is_admin() ) : |
| 37 |
$woocommerce_store_vacation = new WooAdditionalTerms(__FILE__); |
| 38 |
load_plugin_textdomain( 'woo-additional-terms', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' ); |
| 39 |
endif; |