acf/shortcode/prevent_access
acf/shortcode/prevent_access
Appears in: advanced-custom-fields.6.3.5
Hook Type: filter
Displaying hooks found in version: advanced-custom-fields.6.3.5apply_filters('acf/shortcode/prevent_access') is found 1 times:
- /includes/api/api-template.php line 107510711072107310741075107610771078107910801081
$value
=
$field
?
$field
[
'value'
] : get_field(
$atts
[
'field'
],
$post_id
,
$atts
[
'format_value'
], true );
$field_type
=
is_array
(
$field
) && isset(
$field
[
'type'
] ) ?
$field
[
'type'
] :
'text'
;
if
( apply_filters(
'acf/shortcode/prevent_access'
, false,
$atts
,
$decoded_post_id
[
'id'
],
$decoded_post_id
[
'type'
],
$field_type
,
$field
) ) {
return
;
}
if
(
is_array
(
$value
) ) {
$value
= implode(
', '
,
$value
);
}