# polylang/trunk/src/modules/machine-translation/load.php

Polylang, version trunk. 19 lines.

- Page: https://pluginprobe.com/plugins/polylang/trunk/code/src/modules/machine-translation/load.php
- Raw: https://pluginprobe.com/plugins/polylang/trunk/raw/src/modules/machine-translation/load.php
- Modified: 2026-02-23T14:05:20+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/trunk/code/src/modules/machine-translation/load.php#L10-L20`.

```php
<?php
/**
 * Loads the settings module for Machine Translation.
 *
 * @package Polylang
 */

defined( 'ABSPATH' ) || exit;

if ( $polylang->model->has_languages() ) {
	add_filter(
		'pll_settings_modules',
		function ( $modules ) {
			$modules[] = 'PLL_Settings_Preview_Machine_Translation';
			return $modules;
		}
	);
}

```
