Description
The gform_delete_meta() function deletes the meta key from the Entry Meta table.
Usage
gform_delete_meta( $entry_id, $meta_key );
Parameters
| Parameter | Type | Description |
|---|---|---|
$entry_id | integer | The ID of the entry. |
$meta_key | string | The 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.