Gform get meta

Description

Retrieves the meta value of the specified meta key from the Entry Meta table.

Usage


$meta_value = gform_get_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 retrieve.

Examples

This example retrieves the referrer information stored in the entry meta and echos it to the screen.


function display_referrer($entry_id) {
    
    $referrer = gform_get_meta($entry_id, 'referrer');
    echo $referrer;
    
}

Source Code

This function is located in forms_model.php

Search the Documentation