Browse
For agents
About
Age Gate
/
3.7.3
Age Gate
v3.7.3
Switch version
3.7.3
trunk
1.0.0
1.0.1
1.1.0
1.2.0
1.3.0
1.3.1
1.3.2
1.3.3
1.3.4
1.3.5
1.4.0
1.4.1
1.4.10
1.4.11
1.4.12
1.4.13
1.4.2
1.4.3
1.4.4
1.4.5
1.4.6
1.4.7
1.4.8
All 113 releases
Overview
Code
age-gate
/
src
/
Admin
/
Content
/
DisabledTypes.php
DisabledTypes.php
in Age Gate 3.7.3, at src/Admin/Content/DisabledTypes.php
24 lines
458 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
namespace
AgeGate
\
Admin
\
Content
;
4
5
trait
DisabledTypes
6
{
7
private
$
defaultDisabledTypes
=
[
8
'
shop_order
'
,
9
'
attachment
'
,
10
'
acf-field-group
'
,
11
]
;
12
13
protected
function
getDefaultDisabledTypes
(
)
14
{
15
$
types
=
apply_filters
(
'
age_gate/disabled_content/defaults
'
,
$
this
->
defaultDisabledTypes
)
;
16
17
if
(
!
is_array
(
$
types
)
)
{
18
return
$
this
->
defaultDisabledTypes
;
19
}
20
21
return
$
types
;
22
}
23
}
24