-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwpml-to-polylang.php
55 lines (50 loc) · 1.84 KB
/
wpml-to-polylang.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/**
* WPML to Polylang
*
* PHP version 5.6
*
* @package wpml-to-polylang
* @author WP SYNTEX
* @license GPL-3.0-or-later
*
* @wordpress-plugin
* Plugin name: WPML to Polylang
* Plugin URI: https://polylang.pro
* Description: Import multilingual data from WPML into Polylang
* Version: 0.6
* Requires at least: 5.8
* Requires PHP: 5.6
* Author: WP SYNTEX
* Author URI: https://polylang.pro
* Text Domain: wpml-to-polylang
* Domain Path: /languages
* License: GPL v3 or later
* License URI: https://www.gnu.org/licenses/gpl-3.0.txt
*
* Copyright 2013-2020 Frédéric Demarle
* Copyright 2021-2023 WP SYNTEX
*
* 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 <https://www.gnu.org/licenses/>.
*/
namespace WP_Syntex\WPML_To_Polylang;
defined( 'ABSPATH' ) || exit;
define( 'WPML_TO_POLYLANG_VERSION', '0.6' );
define( 'WPML_TO_POLYLANG_MIN_WP_VERSION', '5.8' );
define( 'WPML_TO_POLYLANG_MIN_PLL_VERSION', '3.4' );
if ( ! defined( 'WPML_TO_POLYLANG_QUERY_BATCH_SIZE' ) ) {
define( 'WPML_TO_POLYLANG_QUERY_BATCH_SIZE', 5000 ); // Limits the size of database queries.
}
require __DIR__ . '/vendor/autoload.php';
( new Plugin() )->init();