save_acpt_meta_field_value
save_acpt_meta_field_value
Create/edit meta field value.
This function replaces the following v1 functions:
add_acpt_meta_field_value
edit_acpt_meta_field_value
Usage
save_acpt_meta_field_value([
'post_id' => 123,
'box_name' => 'box',
'field_name' => 'field',
'value' => 432
]);
Parameters
post_id
(integer) (Required if term_id, user_id and option_page are null) The post IDterm_id
(integer) (Required if post_id, user_id and option_page are null) The term IDuser_id
(integer) (Required if post_id, term_id and option_page are null) The user IDoption_page
(string) (Required if post_id, term_id and user_id are null) The option page slugbox_name
(string) (Required) The box namefield_name
(string) (Required) The field namevalue
(mixed) (Required) The field value
Return
boolean
Last updated