16 lines
220 B
PHP
16 lines
220 B
PHP
<?php
|
|
/**
|
|
* @package Polylang-Pro
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit; // Don't access directly.
|
|
}
|
|
|
|
add_action(
|
|
'pll_init',
|
|
function ( $polylang ) {
|
|
$polylang->rest_api = new PLL_REST_API( $polylang );
|
|
}
|
|
);
|