PluginProbe
MC4WP: WPML Integration / 1.0
MC4WP: WPML Integration v1.0
trunk 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6
mc4wp-wpml / mc4wp-wpml.php

mc4wp-wpml.php in MC4WP: WPML Integration 1.0, at mc4wp-wpml.php

51 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: MC4WP - WPML
4 Plugin URI: https://mc4wp.com/#utm_source=wp-plugin&utm_medium=mailchimp-for-wp&utm_campaign=plugins-page
5 Description: Improved WPML integration for MailChimp for WordPress.
6 Version: 1.0
7 Author: ibericode
8 Author URI: https://ibericode.com/
9 Text Domain: mc4wp-wpml
10 Domain Path: /languages
11 License: GPL v3
12
13 MailChimp for WordPress - WPML Integration
14 Copyright (C) 2017, Danny van Kooten, hi@dannyvankooten.com
15
16 This program is free software: you can redistribute it and/or modify
17 it under the terms of the GNU General Public License as published by
18 the Free Software Foundation, either version 3 of the License, or
19 (at your option) any later version.
20
21 This program is distributed in the hope that it will be useful,
22 but WITHOUT ANY WARRANTY; without even the implied warranty of
23 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 GNU General Public License for more details.
25
26 You should have received a copy of the GNU General Public License
27 along with this program. If not, see <http://www.gnu.org/licenses/>.
28 */
29
30 add_action( 'plugins_loaded', function() {
31
32 // only load when MailChimp for WordPress is activated
33 if( ! defined( 'MC4WP_VERSION' ) ) {
34 return;
35 }
36
37 // only load when WPML is activated
38 if( ! defined( 'ICL_SITEPRESS_VERSION' ) ) {
39 return;
40 }
41
42 // load functions & hooks
43 require __DIR__ . '/includes/functions.php';
44 require __DIR__ . '/includes/hooks.php';
45
46 if( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
47 require __DIR__ . '/includes/admin-functions.php';
48 require __DIR__ . '/includes/admin-hooks.php';
49 }
50 }, 20 );
51