Function Detail

Function Name:getOne
Declaration:
public static function getOne( $id, $meta = false )
Basic usage:
$entry = FrmEntry::getOne( $entry_id );
In class:
Location:
formidable/classes/models/FrmEntry.php
Pro function:
No
Notes:

$entry = FrmEntry::getOne( $entry_id ); returns the header record row for the $entry_id from the wp_frm_items table as well as the form's name and key from the wp_frm_forms table. If you pass true as the second argument, it will include the entry's metadata as well.

Image: Result of getOne without metadata displayed in Kint debugger
Image: Result of getOne with metadata displayed in Kint debugger
(images open in new tab)

Contribute Comments or Examples

Codex Comments/Examples
First
Last
No Entries Found