Change email values when send email

Est. Reading: 1 minute
By: adnan.limdiwala
Created: 06/06/2018
Category:
Difficulty: Intermediate

Change email values when send email

×Warning: This tutorial was created 2141 days ago. Some of the information may be out of date with more recent versions of Formidable. Please proceed with caution and always perform a backup before adding custom code.
add_filter('frm_display_email_value_custom', 'frm_emailtype_frm_email_val', 10, 2);
function frm_emailtype_frm_email_val($value, $meta){
   // $meta;
   $frm_change_fields = array(25,26);
  
   if ( in_array( $meta['field']->id, $frm_change_fields ) ) {

       $value = 'changed values here';
    }
   return $value;
}

Leave a Reply

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crosschevron-leftchevron-rightarrow-right