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

Polylang, version 3.0.5. 27 lines.

- Page: https://pluginprobe.com/plugins/polylang/3.0.5/code/modules/sync/load.php
- Raw: https://pluginprobe.com/plugins/polylang/3.0.5/raw/modules/sync/load.php
- Modified: 2021-06-08T08:10:02+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.0.5/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;
		}
	);
}

```
