# polylang/3.1.4/modules/sync/load.php

Polylang, version 3.1.4. 27 lines.

- Page: https://pluginprobe.com/plugins/polylang/3.1.4/code/modules/sync/load.php
- Raw: https://pluginprobe.com/plugins/polylang/3.1.4/raw/modules/sync/load.php
- Modified: 2020-07-14T14:47:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/polylang/3.1.4/code/modules/sync/load.php#L10-L20`.

```php
<?php
/**
 * Loads the module for general synchronization such as metas and taxonomies.
 *
 * @package Polylang
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Don't access directly
};

if ( $polylang->model->get_languages_list() ) {
	if ( $polylang instanceof PLL_Admin_Base ) {
		$polylang->sync = new PLL_Admin_Sync( $polylang );
	} else {
		$polylang->sync = new PLL_Sync( $polylang );
	}

	add_filter(
		'pll_settings_modules',
		function( $modules ) {
			$modules[] = 'PLL_Settings_Sync';
			return $modules;
		}
	);
}

```
