Browse
For agents
About
Polylang
/
3.8.5
Polylang
v3.8.5
Switch version
3.8.9
3.8.8
3.8.7
3.8.6
3.8.5
3.8.4
3.8.3
2.7
2.7.0.1
2.7.1
2.7.2
2.7.3
2.7.4
2.8
2.8.1
2.8.2
2.8.3
2.8.4
2.9
2.9.1
2.9.2
3.0
3.0.1
3.0.2
3.0.3
All 233 releases
Overview
Code
polylang
/
src
/
modules
/
REST
/
load.php
load.php
in Polylang 3.8.5, at src/modules/REST/load.php
17 lines
276 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
<
?
php
2
/**
3
*
@package
Polylang
4
*/
5
6
namespace
WP_Syntex
\
Polylang
\
REST
;
7
8
defined
(
'
ABSPATH
'
)
||
exit
;
9
10
add_action
(
11
'
pll_init
'
,
12
function
(
$
polylang
)
{
13
$
polylang
->
rest
=
new
API
(
$
polylang
->
model
)
;
14
add_action
(
'
rest_api_init
'
,
array
(
$
polylang
->
rest
,
'
init
'
)
)
;
15
}
16
)
;
17