Add value to usermeta without removing previous values?

Question

How do I add a value to the key dismissed_wp_pointers without removing the existing values (if there are any).

Doing this will put the value there, but it will remove everything existing first.

function reset_after_customize() {
    $user_id = get_current_user_id();
    update_user_meta( $user_id, 'dismissed_wp_pointers', 'welcome_tour' );
}

I don’t understand how to add the value to the existing values/value.

0
, , , joq3 2 years 2020-09-01T06:10:25-05:00 0 Answers 64 views 0

Leave an answer

Browse
Browse