PluginProbe
Gift Up Gift Cards for WordPress and WooCommerce / 1.2
Gift Up Gift Cards for WordPress and WooCommerce v1.2
3.2.2 3.1.7 3.1.8 3.2 3.2.1 wp5.2 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.2 1.2.1 1.2.2 1.2.3 1.2.4 All 131 releases
gift-up / giftup.php

giftup.php in Gift Up Gift Cards for WordPress and WooCommerce 1.2, at giftup.php

38 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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__ ) );