gform_delete_meta()

Description

The gform_delete_meta() function deletes the meta key from the Entry Meta table.

Usage

gform_delete_meta( $entry_id, $meta_key );

Parameters

ParameterTypeDescription
$entry_idintegerThe ID of the entry.
$meta_keystringThe meta key of the meta value you wish to delete.

Examples

Delete a stored entry meta value.

// deletes the meta value of the "temporary_value" entry meta key for entry ID 13
gform_delete_meta( 13, 'temporary_value' );

Source Code

This function is located in forms_model.php.