| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Gift Up |
| 4 |
* Plugin URI: https://www.giftupapp.com/ |
| 5 |
* Description: Sell your own gift cards & gift certificates on your website with no monthly fee. Redeemable in your WooCommerce store. |
| 6 |
* Version: 1.2.0 |
| 7 |
* Author: Gift Up! |
| 8 |
* License: GPLv2 or later |
| 9 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html |
| 10 |
* Developer: Gift Up! |
| 11 |
* Developer URI: https://www.giftupapp.com/ |
| 12 |
* Author URI: https://www.giftupapp.com/ |
| 13 |
* WC requires at least: 3.0.0 |
| 14 |
* WC tested up to: 3.4.3 |
| 15 |
*/ |
| 16 |
|
| 17 |
if ( ! defined( 'ABSPATH' ) ) { |
| 18 |
exit; // Exit if accessed directly |
| 19 |
} |
| 20 |
|
| 21 |
require_once plugin_dir_path( __FILE__ ) . 'view/giftup-render.php'; |
| 22 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-giftup-tools.php'; |
| 23 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-giftup-settings.php'; |
| 24 |
|
| 25 |
function giftup_shortcodes_init() { |
| 26 |
add_shortcode( 'giftup', 'giftup_func' ); |
| 27 |
} |
| 28 |
add_action( 'init', 'giftup_shortcodes_init' ); |
| 29 |
|
| 30 |
function giftup_uninstall() { |
| 31 |
remove_shortcode( 'giftup' ); |
| 32 |
giftup_tools::giftup_disconnect_woocommerce(); |
| 33 |
giftup_tools::remove_all_options(); |
| 34 |
} |
| 35 |
register_uninstall_hook( __FILE__, 'giftup_uninstall' ); |
| 36 |
|
| 37 |
// Initialize Gift Up! Settings |
| 38 |
new giftup_settings( plugin_basename( __FILE__ ), plugin_dir_path( __FILE__ ) ); |