PHP Classes

File: ade-simple-wishlist.php

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Ade Simple WooCommerce Wishlist plugin   ade-simple-wishlist.php   Download  
File: ade-simple-wishlist.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Ade Simple WooCommerce Wishlist plugin
Plugin to add wishlists to WooCommerce sites
Author: By
Last change:
Date: 1 year ago
Size: 1,123 bytes
 

Contents

Class file image Download
<?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';
}