PluginProbe
AffiliateX – Amazon Affiliate Plugin, Product Boxes, Comparison Tables & Affiliate Link Tracking / trunk
AffiliateX – Amazon Affiliate Plugin, Product Boxes, Comparison Tables & Affiliate Link Tracking vtrunk
2.3.9 2.3.8 2.3.7 2.3.6 2.3.5 2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.0 2.2.1 2.1.0 2.0.8 2.0.7 2.0.6 2.0.5 2.0.4 2.0.3 2.0.2 2.0.1 2.0 1.2.9 1.2.9.1 1.2.9.2 All 87 releases
affiliatex / affiliatex.php

affiliatex.php in AffiliateX – Amazon Affiliate Plugin, Product Boxes, Comparison Tables & Affiliate Link Tracking trunk, at affiliatex.php

89 lines 3.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Plugin Name: AffiliateX – Amazon Affiliate Plugin
5 * Plugin URI: https://affiliatexblocks.com
6 * Description: AffiliateX is the best WordPress Amazon Affiliate Plugin. Create professional affiliate websites with customizable WordPress Amazon Affiliate Blocks.
7 * Author: AffiliateX
8 * Author URI: https://affiliatexblocks.com
9 * Text Domain: affiliatex
10 * Domain Path: /languages
11 * Version: 2.3.9
12 * Requires at least: 5.8
13 * Requires PHP: 7.4
14 * License: GPL-2.0-or-later
15 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
16 *
17 * @package AffiliateX
18 */
19 use AffiliateX\AffiliateX;
20 defined( 'ABSPATH' ) || exit;
21 if ( function_exists( 'affiliatex_fs' ) ) {
22 affiliatex_fs()->set_basename( false, __FILE__ );
23 } else {
24 if ( !function_exists( 'affiliatex_fs' ) ) {
25 /**
26 * Create a helper function for easy SDK access.
27 *
28 * @return object
29 */
30 function affiliatex_fs() {
31 global $affiliatex_fs;
32 if ( !isset( $affiliatex_fs ) ) {
33 // Include Freemius SDK.
34 require_once __DIR__ . '/vendor/freemius/wordpress-sdk/start.php';
35 $affiliatex_fs = fs_dynamic_init( array(
36 'id' => '15886',
37 'slug' => 'affiliatex',
38 'premium_slug' => 'affiliatex-pro',
39 'type' => 'plugin',
40 'public_key' => 'pk_76dcb91998e6cb52401be629fea6f',
41 'is_premium' => false,
42 'premium_suffix' => 'pro',
43 'has_addons' => false,
44 'has_paid_plans' => true,
45 'menu' => array(
46 'slug' => 'affiliatex_blocks',
47 'support' => false,
48 'contact' => true,
49 ),
50 'is_live' => true,
51 'is_org_compliant' => true,
52 ) );
53 }
54 return $affiliatex_fs;
55 }
56
57 // Init Freemius.
58 affiliatex_fs();
59 // Signal that SDK was initiated.
60 do_action( 'affiliatex_fs_loaded' );
61 }
62 require_once __DIR__ . '/vendor/autoload.php';
63 require_once __DIR__ . '/vendor/woocommerce/action-scheduler/action-scheduler.php';
64 if ( !defined( 'AFFILIATEX_PLUGIN_FILE' ) ) {
65 define( 'AFFILIATEX_PLUGIN_FILE', __FILE__ );
66 }
67 if ( !defined( 'AFFILIATEX_PLUGIN_DIR' ) ) {
68 define( 'AFFILIATEX_PLUGIN_DIR', __DIR__ );
69 }
70 if ( !defined( 'AFFILIATEX_PLUGIN_URL' ) ) {
71 define( 'AFFILIATEX_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
72 }
73 if ( !defined( 'AFFILIATEX_VERSION' ) ) {
74 define( 'AFFILIATEX_VERSION', '2.3.9' );
75 }
76 if ( !defined( 'AFFILIATEX_EXTERNAL_API_ENDPOINT' ) ) {
77 define( 'AFFILIATEX_EXTERNAL_API_ENDPOINT', 'https://affiliatexblocks.com' );
78 }
79 /**
80 * Init function
81 */
82 function affiliatex_init() {
83 return AffiliateX::instance();
84 }
85
86 $GLOBALS['AffiliateX'] = affiliatex_init();
87 // Invokes all functions attached to the 'affiliatex_free_loaded' hook
88 do_action( 'affiliatex_free_loaded' );
89 }