delete_meta

Description

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

Usage

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

Parameters

$key

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

Returns

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

Examples

Delete user’s age field

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