| 1 |
<?php |
| 2 |
/** |
| 3 |
* Loads the integration with Jetpack. |
| 4 |
* Works for Twenty Fourteen featured content too. |
| 5 |
* |
| 6 |
* @package Polylang |
| 7 |
*/ |
| 8 |
|
| 9 |
if ( ! defined( 'ABSPATH' ) ) { |
| 10 |
exit; // Don't access directly. |
| 11 |
}; |
| 12 |
|
| 13 |
PLL_Integrations::instance()->jetpack = new PLL_Jetpack(); // Must be loaded before the plugin is active. |
| 14 |
add_action( 'pll_init', array( PLL_Integrations::instance()->featured_content = new PLL_Featured_Content(), 'init' ) ); |
| 15 |
|