# polylang/3.0.6/integrations/wpseo/load.php

Polylang, version 3.0.6. 22 lines.

- Page: https://pluginprobe.com/plugins/polylang/3.0.6/code/integrations/wpseo/load.php
- Raw: https://pluginprobe.com/plugins/polylang/3.0.6/raw/integrations/wpseo/load.php
- Modified: 2021-06-22T07:59:24+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.6/code/integrations/wpseo/load.php#L10-L20`.

```php
<?php
/**
 * Loads the integration with Yoast SEO.
 *
 * @package Polylang
 */

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

add_action(
	'plugins_loaded',
	function() {
		if ( defined( 'WPSEO_VERSION' ) ) {
			add_action( 'pll_init', array( PLL_Integrations::instance()->wpseo = new PLL_WPSEO(), 'init' ) );
		}
	},
	0
);


```
