Docs & Support

Learn about all the Formidable features and get support from our amazing customer success team.

frm_include_meta_keys

This hook makes it so when an entry object is retrieved, like this:

$entry = FrmEntry::getOne( $id, true)

then the $entry->metas includes the field values by ID and also by key. Normally when retrieving an entry object, the $entry -> metas would only include the field values by ID.

Usage

add_filter('frm_include_meta_keys', 'include_meta_keys_for_single_form', 10, 2);

Parameters

  • $include_keys (boolean) - true or false
  • $args (array)
    • 'form_id' (int)

Examples

Basic Example

This will include item meta keys for all forms on your site.

add_filter('frm_include_meta_keys', '__return_true');

Enable Meta Keys for Single Form

This example will allow you to include item meta keys for entries belonging to a single form.

add_filter('frm_include_meta_keys', 'include_meta_keys_for_single_form', 10, 2);
function include_meta_keys_for_single_form( $include_keys, $args ) {
  if ( $args['form_id'] == 364 ) { //replace 364 with Form ID
	  $include_key = true;
  }
  return $include_key;
}
Was this article helpful? *

This article may contain affiliate links. Once in a while, we earn commissions from those links. But we only recommend products we like, with or without commissions.

In this article

    We have a small, but amazing team of dedicated people who are committed to helping you achieve your goals and project requirements.


    Copyright © 2025 Strategy11, LLC. Formidable Forms® is a registered trademark Strategy11, LLC.

    Complete your purchase
    Special offer unlocked.
    Get 55% OFF!
    Complete Purchase
    Join 400,000+ using Formidable Forms to create form-focused solutions fast. Get Formidable Forms