| 1 |
<?php |
| 2 |
/** |
| 3 |
* Loads the module for general synchronization such as metas and taxonomies. |
| 4 |
* |
| 5 |
* @package Polylang |
| 6 |
*/ |
| 7 |
|
| 8 |
if ( ! defined( 'ABSPATH' ) ) { |
| 9 |
exit; // Don't access directly |
| 10 |
}; |
| 11 |
|
| 12 |
if ( $polylang->model->get_languages_list() ) { |
| 13 |
if ( $polylang instanceof PLL_Admin_Base ) { |
| 14 |
$polylang->sync = new PLL_Admin_Sync( $polylang ); |
| 15 |
} else { |
| 16 |
$polylang->sync = new PLL_Sync( $polylang ); |
| 17 |
} |
| 18 |
|
| 19 |
add_filter( |
| 20 |
'pll_settings_modules', |
| 21 |
function( $modules ) { |
| 22 |
$modules[] = 'PLL_Settings_Sync'; |
| 23 |
return $modules; |
| 24 |
} |
| 25 |
); |
| 26 |
} |
| 27 |
|