<?php
/**
* Plugin Name: Ade Simple Wishlist
* Plugin URI: https://adeleyeayodeji.com
* Author: Adeleye Ayodeji
* Author URI: https://adeleyeayodeji.com
* Description: A simple wishlist plugin for WordPress
* Version: 1.0.0
* License: GPL-2.0+
* License URL: http://www.gnu.org/licenses/gpl-2.0.txt
* text-domain: ade-simple-wishlist
*/
// If this file is called directly, abort.
if (!defined('WPINC')) {
die;
}
// Define plugin constants
define('ADE_SIMPLE_WISHLIST_VERSION', '1.0.0');
define('ADE_SIMPLE_WISHLIST_PLUGIN_DIR', plugin_dir_path(__FILE__));
define('ADE_SIMPLE_WISHLIST_PLUGIN_URL', plugin_dir_url(__FILE__));
define('ADE_SIMPLE_WISHLIST_PLUGIN_FILE', __FILE__);
//check if AdeWishlist class exists
if (!class_exists('AdeWishlist')) {
//include AdeWishlist
include_once ADE_SIMPLE_WISHLIST_PLUGIN_DIR . 'includes/woocore.php';
include_once ADE_SIMPLE_WISHLIST_PLUGIN_DIR . 'includes/wishlist-core.php';
include_once ADE_SIMPLE_WISHLIST_PLUGIN_DIR . 'includes/wc-rest.php';
include_once ADE_SIMPLE_WISHLIST_PLUGIN_DIR . 'includes/class-ade-wishlist.php';
}
|