learndash_update_post_meta

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 #

Used when saving a single setting. This will then trigger an update to the array setting. Fires on update_post_meta hook.


Parameters #

$meta_id

(int) (Optional) ID of the metadata entry to update. Default 0.

$object_id

(int|string) (Optional) Object ID.

Default value: ''

$meta_key

(string) (Optional) Meta key.

Default value: ''

$meta_value

(mixed) (Optional) Meta value.

Default value: ''


Source #

File: includes/ld-misc-functions.php