pixelyoursite
Last commit date
dist
5 years ago
includes
5 years ago
modules
5 years ago
notices
5 years ago
pixelyoursite
6 years ago
vendor
5 years ago
composer.json
5 years ago
composer.lock
5 years ago
facebook-pixel-master.php
5 years ago
pixelyoursite.php
5 years ago
readme.txt
5 years ago
facebook-pixel-master.php
48 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Plugin Name: PixelYourSite |
| 5 | * Plugin URI: http://www.pixelyoursite.com/ |
| 6 | * Description: No codding <strong>Facebook Pixel</strong> and <strong>Google Analytics</strong> install. Track key actions with our Global Events, or configure your own events. WooCommerce and EDD fully supported, with Facebook Dynamic Ads Pixel set-up and Google Analytics Enhanced Ecommerce. Insert any custom script with our Head & Footer option. Add the <strong>Pinterest Tag</strong> with our free add-on. The PRO version adds support for the Google Ads tag plus a lot of extra stuff. |
| 7 | * Version: 7.1.9 |
| 8 | * Author: PixelYourSite |
| 9 | * Author URI: http://www.pixelyoursite.com |
| 10 | * License: GPLv3 |
| 11 | * |
| 12 | * Requires at least: 4.4 |
| 13 | * Tested up to: 5.4 |
| 14 | * |
| 15 | * WC requires at least: 2.6.0 |
| 16 | * WC tested up to: 4.2 |
| 17 | * |
| 18 | * Text Domain: pys |
| 19 | */ |
| 20 | |
| 21 | if ( ! defined( 'ABSPATH' ) ) { |
| 22 | exit; // Exit if accessed directly. |
| 23 | } |
| 24 | |
| 25 | function isPysProActive() { |
| 26 | |
| 27 | if ( ! function_exists( 'is_plugin_active' ) ) { |
| 28 | include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); |
| 29 | } |
| 30 | |
| 31 | return is_plugin_active( 'pixelyoursite-pro/pixelyoursite-pro.php' ); |
| 32 | |
| 33 | } |
| 34 | |
| 35 | register_activation_hook( __FILE__, 'pysFreeActivation' ); |
| 36 | function pysFreeActivation() { |
| 37 | |
| 38 | if ( isPysProActive() ) { |
| 39 | deactivate_plugins('pixelyoursite-pro/pixelyoursite-pro.php'); |
| 40 | } |
| 41 | |
| 42 | \PixelYourSite\manageAdminPermissions(); |
| 43 | } |
| 44 | /** |
| 45 | * facebook-pixel-master.php used for backward compatibility. |
| 46 | */ |
| 47 | require_once 'pixelyoursite.php'; |
| 48 |