| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Affiliate Links - Link Cloaking and Management |
| 4 |
* |
| 5 |
* Note: Plugin name changed from "WordPress Plugin for Link Cloaking" |
| 6 |
* because "Plugin" is not allowed in plugin names per WordPress.org guidelines |
| 7 |
* |
| 8 |
* Description: Affiliate Links is a powerful WordPress plugin developed by wecantrack, designed to help you create, cloak, and manage both internal and external links effortlessly. |
| 9 |
* Version: 3.3.0 |
| 10 |
* Author: wecantrack.com |
| 11 |
* Author URI: https://wecantrack.com |
| 12 |
* License: GPL-2.0+ |
| 13 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 14 |
* Text Domain: affiliate-links |
| 15 |
* Domain Path: /languages/ |
| 16 |
*/ |
| 17 |
|
| 18 |
// If this file is called directly, abort. |
| 19 |
if ( ! defined( 'ABSPATH' ) ) { |
| 20 |
die(); |
| 21 |
} |
| 22 |
|
| 23 |
define( 'AFFILIATE_LINKS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); |
| 24 |
define( 'AFFILIATE_LINKS_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); |
| 25 |
define( 'AFFILIATE_LINKS_FILE', __FILE__ ); |
| 26 |
define( 'AFFILIATE_LINKS_BASENAME', plugin_basename( AFFILIATE_LINKS_FILE ) ); |
| 27 |
define( 'AFFILIATE_LINKS_PRO_PLUGIN_DIR', plugin_dir_path( __FILE__ ) . 'pro' ); |
| 28 |
|
| 29 |
require_once AFFILIATE_LINKS_PLUGIN_DIR . 'includes/class-affiliate-links.php'; |
| 30 |
|
| 31 |
/** |
| 32 |
* Begins execution of the plugin. |
| 33 |
*/ |
| 34 |
$Affiliate_Links = new Affiliate_Links(); |
| 35 |
|
| 36 |
/* |
| 37 |
* Activation/deactivation stuff |
| 38 |
*/ |
| 39 |
register_activation_hook( __FILE__, array ( $Affiliate_Links, 'activation_hook') ); |
| 40 |
register_deactivation_hook( __FILE__, array ( $Affiliate_Links, 'deactivation_hook') ); |
| 41 |
|