Removing the Header Image From Notification Emails of Specific Forms

Would you like to hide the header image in notification emails for only a few forms instead of all forms? In this tutorial, you will add a small PHP snippet that checks the current form ID and removes the email header image for the forms you choose.

Add the Code Snippet

To start, you’ll need to add the snippet below to your site. If you’re not sure how or where to add snippets, please review this helpful documentation.

In the snippet above, make sure to replace 123, 456, 789 in line 14 with the IDs of the forms where you do not want the header image to appear.

To locate your form and field IDs, check out this tutorial.

How It Works

  • The wpforms_emails_templates_general_set_initial_args filter runs when WPForms prepares the email template settings.
  • The snippet tries to resolve the active form ID from the request or the processor context, then unsets the header_image value for the forms you listed.
  • Other email template settings remain unchanged.