Title: forminator_custom_form_mail_admin_message
Last modified: June 27, 2026

---

# forminator_custom_form_mail_admin_message

 *  [peter8nss](https://wordpress.org/support/users/peter8nss/)
 * (@peter8nss)
 * [1 week ago](https://wordpress.org/support/topic/forminator_custom_form_mail_admin_message/)
 * Trying to use filter _forminator\_custom\_form\_mail\_admin\_message_ to modify
   message sent for certain notifications. The filter is called within a loop over
   notifications, so it would be really helpful if “$notification” was passed to
   the filter.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [6 days, 18 hours ago](https://wordpress.org/support/topic/forminator_custom_form_mail_admin_message/#post-18950236)
 * Hello [@peter8nss](https://wordpress.org/support/users/peter8nss/)
 * This filter accepts 5 variables. Here is an example of its usage:
 *     ```
       add_filter( 'forminator_custom_form_mail_admin_message', 'wpmudev_custom_value_fix', 10, 5 );
       function wpmudev_custom_value_fix( $message, $custom_form, $data, $entry, $cls_mail ) {
       	if ( 2960 !== intval( $custom_form->id ) ) { // Please change the form ID.
       		return $message;
       	}
   
       	foreach ( $data as $key => $value ) {
       		if ( false !== strpos( $key, 'custom-field' ) && ! empty( $data[ $key ] ) ) {
       			$message .= $data[ $key ];
       		}
       	}
   
       	return $message;
       }
       ```
   
 * Please note that custom coding is out of scope of our support so we can’t share
   an exact usage but if still having issues, please explain more about your goal.
 * Best Regards
    Amin
 *  Thread Starter [peter8nss](https://wordpress.org/support/users/peter8nss/)
 * (@peter8nss)
 * [6 days, 18 hours ago](https://wordpress.org/support/topic/forminator_custom_form_mail_admin_message/#post-18950241)
 * I am aware how to use a filter. And I am not seeking advice on custom coding.
 * I’m pointing out that you have a filter in a loop such that each time round the
   loop the filter is called with identical variables. To be useful, the filter 
   needs to know which iteration of the loop it is on (e.g. which notification is
   being processed), e.g. it would be helpful if, **in a future release**, you also
   passed $notification to the filter.
 *  Plugin Support [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [5 days, 12 hours ago](https://wordpress.org/support/topic/forminator_custom_form_mail_admin_message/#post-18951389)
 * Hello [@peter8nss](https://wordpress.org/support/users/peter8nss/)
 * I will bring your suggestion to our development team’s attention, and I hope 
   we can use that in future updates.
 * I’m afraid I can’t provide any ETAs or promises.
 * Best Regards,
    Amin

Viewing 3 replies - 1 through 3 (of 3 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fforminator_custom_form_mail_admin_message%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/forminator/assets/icon-256x256.gif?rev=3443182)
 * [Forminator Forms – Contact Form, Payment Form & Custom Form Builder](https://wordpress.org/plugins/forminator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forminator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forminator/)
 * [Active Topics](https://wordpress.org/support/plugin/forminator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forminator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forminator/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * Last activity: [5 days, 12 hours ago](https://wordpress.org/support/topic/forminator_custom_form_mail_admin_message/#post-18951389)
 * Status: not resolved