learndash_update_post_meta( int $meta_id, int|string $object_id = '', string $meta_key = '', mixed $meta_value = '' )
Updates the metadata settings array when updating single setting.
Description Description
Used when saving a single setting. This will then trigger an update to the array setting. Fires on update_post_meta
hook.
Parameters Parameters
- $meta_id
-
(Optional) ID of the metadata entry to update. Default 0.
- $object_id
-
(Optional) Object ID.
Default value: ''
- $meta_key
-
(Optional) Meta key.
Default value: ''
- $meta_value
-
(Optional) Meta value.
Default value: ''
Source Source
File: includes/ld-misc-functions.php