PluginProbe
MC4WP: WPML Integration / trunk
MC4WP: WPML Integration vtrunk
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 trunk, at mc4wp-wpml.php

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