gform_delete_meta()

gform_delete_meta()

DescriptionUsageParametersExamplesSource Code

Description
Deletes the meta key from the Entry Meta table.
Usage
gform_delete_meta( $entry_id, $meta_key );

Parameters

$entry_id integer
The ID of the entry.

$meta_key string
The meta key of the meta value you wish to delete.

Examples
This example simply deletes 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

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注