Re-sending E-mails after editing entries via Listings for WordPress
The code example will make it possible to re-send the Admin and or Confirmation E-mails after an entry has been edited or updated via the table view (Listings Add-on) on your WordPress site.
add_filter('super_before_submit_form_settings_filter', 'f4d_alter_form_settings_before_submit', 50, 2);
function f4d_alter_form_settings_before_submit($settings, $args){
extract($args);
if($list_id!==''){
// In order to edit entries we need to make sure some settings are not enabled
$overrideSettings = array(
'send'=>'yes', // changed to 'yes' so that the form will re-send the email
'confirm'=>'yes' // changed to 'yes' so that the form will re-send the email
);
$global_settings = SUPER_Common::get_global_settings();
$i = 1;
while($i <= absint($global_settings['email_reminder_amount'])){
$overrideSettings['email_reminder_'.$i] = '';
$i++;
}
foreach($overrideSettings as $k => $v){
$settings[$k] = $v;
}
}
return $settings;
}PreviousTrim values of fieldsNextCombine multiple field values into one column on Contact Entries page
Last updated