PluginProbe
WPML to Polylang / trunk
WPML to Polylang vtrunk
trunk 0.1 0.1.1 0.1.2 0.1.3 0.1.4 0.2 0.2.1 0.2.2 0.2.3 0.2.4 0.2.5 0.3 0.3.1 0.4 0.5 0.6 0.7
wpml-to-polylang / wpml-to-polylang.php

wpml-to-polylang.php in WPML to Polylang trunk, at wpml-to-polylang.php

54 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * WPML to Polylang
4 *
5 * @package wpml-to-polylang
6 * @author WP SYNTEX
7 * @license GPL-3.0-or-later
8 *
9 * @wordpress-plugin
10 * Plugin name: WPML to Polylang
11 * Plugin URI: https://polylang.pro
12 * Description: Import multilingual data from WPML into Polylang
13 * Version: 0.7
14 * Requires at least: 6.5
15 * Requires PHP: 7.4
16 * Author: WP SYNTEX
17 * Author URI: https://polylang.pro
18 * Text Domain: wpml-to-polylang
19 * Domain Path: /languages
20 * License: GPL v3 or later
21 * License URI: https://www.gnu.org/licenses/gpl-3.0.txt
22 *
23 * Copyright 2013-2020 Frédéric Demarle
24 * Copyright 2021-2026 WP SYNTEX
25 *
26 * This program is free software: you can redistribute it and/or modify
27 * it under the terms of the GNU General Public License as published by
28 * the Free Software Foundation, either version 3 of the License, or
29 * (at your option) any later version.
30 *
31 * This program is distributed in the hope that it will be useful,
32 * but WITHOUT ANY WARRANTY; without even the implied warranty of
33 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34 * GNU General Public License for more details.
35 *
36 * You should have received a copy of the GNU General Public License
37 * along with this program. If not, see <https://www.gnu.org/licenses/>.
38 */
39
40 namespace WP_Syntex\WPML_To_Polylang;
41
42 defined( 'ABSPATH' ) || exit;
43
44 define( 'WPML_TO_POLYLANG_VERSION', '0.7' );
45 define( 'WPML_TO_POLYLANG_MIN_WP_VERSION', '6.5' );
46 define( 'WPML_TO_POLYLANG_MIN_PLL_VERSION', '3.8' );
47
48 if ( ! defined( 'WPML_TO_POLYLANG_QUERY_BATCH_SIZE' ) ) {
49 define( 'WPML_TO_POLYLANG_QUERY_BATCH_SIZE', 5000 ); // Limits the size of database queries.
50 }
51
52 require __DIR__ . '/vendor/autoload.php';
53 ( new Plugin() )->init();
54