acf/pre_update_metadata
acf/pre_update_metadata
Appears in: advanced-custom-fields.6.3.5
Hook Type: filter
Displaying hooks found in version: advanced-custom-fields.6.3.5apply_filters('acf/pre_update_metadata') is found 1 times:
- /includes/acf-meta-functions.php line 171167168169170171172173174175176177
* @
return
integer|boolean Meta ID
if
the key didn't exist, true on successful update, false on failure.
*/
function
acf_update_metadata(
$post_id
= 0,
$name
=
''
,
$value
=
''
,
$hidden
= false ) {
// Allow filter to short-circuit logic.
$pre
= apply_filters(
'acf/pre_update_metadata'
, null,
$post_id
,
$name
,
$value
,
$hidden
);
if
(
$pre
!== null ) {
return
$pre
;
}
// Decode $post_id for $type and $id.
$decoded
= acf_decode_post_id(
$post_id
);