# polylang/trunk/src/integrations/wp-sweep/load.php

Polylang, version trunk. 22 lines.

- Page: https://pluginprobe.com/plugins/polylang/trunk/code/src/integrations/wp-sweep/load.php
- Raw: https://pluginprobe.com/plugins/polylang/trunk/raw/src/integrations/wp-sweep/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/integrations/wp-sweep/load.php#L10-L20`.

```php
<?php
/**
 * Loads the integration with WP Sweep.
 *
 * @package Polylang
 */

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

add_action(
	'plugins_loaded',
	function () {
		if ( defined( 'WP_SWEEP_VERSION' ) ) {
			PLL_Integrations::instance()->wp_sweep = new PLL_WP_Sweep();
			PLL_Integrations::instance()->wp_sweep->init();
		}
	},
	0
);

```
