22 lines
363 B
PHP
22 lines
363 B
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
|
|
);
|