Files
2025-02-24 22:33:42 +01:00

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 );
}
);