frm_update_entry

Back to Top
Knowledge BaseEntry Management → frm_update_entry

This hook allows you to do something with the data entered in a form before it is updated.

Usage

add_filter('frm_update_entry', 'frm_updated_at');

Parameters

  • $new_values (array)

Examples

Formidable Hook - Helpful

Prevent 'Updated-At' From Updating on CSV Import

Submitted by  — 7 years ago

By default, whenever a CSV file is imported and form entries are updated, the "updated-at" timestamp is updated as well. The example below can be used to prevent the "updated-at" timestamp from being updated.

add_filter('frm_update_entry', 'frm_updated_at');
function frm_updated_at( $new_values ){
  if ( defined( 'WP_IMPORTING' ) && WP_IMPORTING ) {
    unset( $new_values['updated_at'] );
  }
  return $new_values;
}
If you would like to add your own example, click here.

Change Log

Last changed in version 2.0.16

Have something to add?

Click here to provide feedback on this page.