delete_meta

Description

This method can be used to delete a user’s meta key.

Usage

<?php UM()->user()->delete_meta( $key ); ?>

Parameters

$key

(string) (required) The meta field key is to remove from the user.

Returns

This method will not return anything. The specified meta key will be deleted from the database for the specified user.

Examples

Delete user’s age field

<?php 
  um_fetch_user( 15 ); 
  UM()->user()->delete_meta( 'age' ); 
?>