| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Affiliate Links Lite |
| 4 |
* Plugin URI: http://affiliatelinkswp.com/ |
| 5 |
* Description: Create any redirect links to any website from your WordPress Admin. Perfect for the affiliate links masking. |
| 6 |
* Version: 2.1 |
| 7 |
* Author: TeamDev Ltd |
| 8 |
* Author URI: https://www.teamdev.com/ |
| 9 |
* License: GPL-2.0+ |
| 10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 11 |
* Text Domain: affiliate-links |
| 12 |
* Domain Path: /languages/ |
| 13 |
*/ |
| 14 |
|
| 15 |
// If this file is called directly, abort. |
| 16 |
if ( ! defined( 'ABSPATH' ) ) { |
| 17 |
die(); |
| 18 |
} |
| 19 |
|
| 20 |
define( 'AFFILIATE_LINKS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); |
| 21 |
define( 'AFFILIATE_LINKS_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); |
| 22 |
define( 'AFFILIATE_LINKS_FILE', __FILE__ ); |
| 23 |
define( 'AFFILIATE_LINKS_BASENAME', plugin_basename( AFFILIATE_LINKS_FILE ) ); |
| 24 |
|
| 25 |
require_once AFFILIATE_LINKS_PLUGIN_DIR . 'includes/class-affiliate-links.php'; |
| 26 |
|
| 27 |
/** |
| 28 |
* Begins execution of the plugin. |
| 29 |
*/ |
| 30 |
$Affiliate_Links = new Affiliate_Links(); |
| 31 |
|
| 32 |
/* |
| 33 |
* Activation/deactivation/deletion stuff |
| 34 |
*/ |
| 35 |
register_activation_hook( __FILE__, array ( $Affiliate_Links, 'activation_hook') ); |
| 36 |
register_deactivation_hook( __FILE__, array ( $Affiliate_Links, 'deactivation_hook') ); |
| 37 |
//deletion stuff is placed in uninstall.php |