%PDF- %PDF-
| Direktori : /home/gachan/www/wp-content/plugins/mailchimp/ |
| Current File : /home/gachan/www/wp-content/plugins/mailchimp/mailchimp-for-wp.php |
<?php
/*
Plugin Name: MailChimp for WordPress Lite
Plugin URI: https://mc4wp.com/#utm_source=wp-plugin&utm_medium=mailchimp-for-wp&utm_campaign=plugins-page
Description: Lite version of MailChimp for WordPress. Adds various sign-up methods to your website.
Version: 2.3.18
Author: ibericode
Author URI: https://ibericode.com/
Text Domain: mailchimp-for-wp
Domain Path: /languages
License: GPL v3
MailChimp for WordPress
Copyright (C) 2012-2015, Danny van Kooten, hi@dannyvankooten.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// Prevent direct file access
if( ! defined( 'ABSPATH' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit;
}
/**
* Loads the MailChimp for WP plugin files
*
* @return boolean True if the plugin files were loaded, false otherwise.
*/
function mc4wp_load_plugin() {
// don't load plugin if user has the premium version installed and activated
if( defined( 'MC4WP_VERSION' ) ) {
return false;
}
// bootstrap the lite plugin
define( 'MC4WP_LITE_VERSION', '2.3.18' );
define( 'MC4WP_LITE_PLUGIN_DIR', dirname( __FILE__ ) . '/' );
define( 'MC4WP_LITE_PLUGIN_URL', plugins_url( '/' , __FILE__ ) );
define( 'MC4WP_LITE_PLUGIN_FILE', __FILE__ );
require_once MC4WP_LITE_PLUGIN_DIR . 'vendor/autoload_52.php';
require_once MC4WP_LITE_PLUGIN_DIR . 'includes/functions/general.php';
require_once MC4WP_LITE_PLUGIN_DIR . 'includes/functions/template.php';
// Initialize admin section of plugin
if( is_admin()
&& ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
$admin = new MC4WP_Lite_Admin();
$admin->add_hooks();
}
// Initialize the plugin and store an instance in the global scope
MC4WP_Lite::init();
$GLOBALS['mc4wp'] = MC4WP_Lite::instance();
// Doing cron?
if( defined( 'DOING_CRON' ) && DOING_CRON ) {
MC4WP_Usage_Tracking::instance()->add_hooks();
}
return true;
}
add_action( 'plugins_loaded', 'mc4wp_load_plugin', 20 );