I've been able to successfully empty the meta_value for a specific meta_key. The problem is that a new meta_key will be created for all users in the database. I do not want all users to have the meta_key created in the database unless it already exist.
I think perhaps if I set 'guest_list_venue_names' as a variable and check if it exist I can use an IF statement? I'm new to PHP so any insight would be helpful.
$wp_user_query = new WP_User_Query(array('role' => 'Subscriber'));
$users = $wp_user_query->get_results();
if (!empty($users)) {
foreach ($users as $user)
{
update_user_meta( $user->id, 'guest_list_venue', '');
update_user_meta( $user->id, 'guest_list_venue_names', '');
}
}