Browse
For agents
About
Advanced Custom Fields (ACF®)
/
3.0.4
Advanced Custom Fields (ACF®)
v3.0.4
Switch version
6.8.9
6.8.8
6.8.7
6.8.6
6.8.5
6.8.4
6.8.3
6.8.2
6.8.1
5.8.5
5.8.6
5.8.7
5.8.8
5.8.9
5.9.0
5.9.1
5.9.2
5.9.3
5.9.4
5.9.5
5.9.6
5.9.7
5.9.8
5.9.9
6.0.0
All 230 releases
Overview
Code
advanced-custom-fields
/
core
/
actions
/
save_input.php
save_input.php
20 lines
285 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
//
strip slashes
4
$
_POST
=
array_map
(
'
stripslashes_deep
'
,
$
_POST
)
;
5
6
//
save fields
7
$
fields
=
$
_POST
[
'
fields
'
]
;
8
9
if
(
$
fields
)
10
{
11
foreach
(
$
fields
as
$
key
=>
$
value
)
12
{
13
//
get field
14
$
field
=
$
this
->
get_acf_field
(
$
key
)
;
15
16
$
this
->
update_value
(
$
post_id
,
$
field
,
$
value
)
;
17
}
18
}
19
20
?
>