Browse
For agents
About
Polylang
/
trunk
Polylang
vtrunk
Switch version
3.8.10
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
All 234 releases
Overview
Code
polylang
/
src
/
modules
/
share-slug
/
load.php
load.php
in Polylang trunk, at src/modules/share-slug/load.php
21 lines
342 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
* Loads the settings module for shared slugs.
4
*
5
*
@package
Polylang
6
*/
7
8
if
(
!
defined
(
'
ABSPATH
'
)
)
{
9
exit
;
//
Don't access directly
10
}
11
12
if
(
$
polylang
->
model
->
has_languages
(
)
)
{
13
add_filter
(
14
'
pll_settings_modules
'
,
15
function
(
$
modules
)
{
16
$
modules
[
]
=
'
PLL_Settings_Preview_Share_Slug
'
;
17
return
$
modules
;
18
}
19
)
;
20
}
21