1. Home
  2. Snippets
  3. Remove or change email notification footer text

Remove or change email notification footer text

Heads up!

This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.

Dismiss

By default, email notifications for WPForms will include a footer that reads “Send from YOUR SITE NAME”, as shown in this screenshot:

Notification footer text

Here is the PHP to completely remove that text from future form notifications:

<?php
/**
 * WPForms remove the "Sent from YOUR SITE" email notification footer text.
 */
add_filter( 'wpforms_email_footer_text', '__return_empty_string' );

Or, if you’d rather just change the ‘Sent From’ text, here’s the code for that. Just change the part that reads ‘NEW TEXT HERE’:

/**
 * WPForms change the "Sent from YOUR SITE" email notification footer text.
 */
function wpf_dev_footer_text( $footer ) {
	$footer = sprintf( __( 'NEW TEXT HERE <a href="%s" style="color:#bbbbbb;">%s</a>', 'wpforms' ), esc_url( home_url() ), wp_specialchars_decode( get_bloginfo( 'name' ) ) );
	return $footer;
}
add_filter( 'wpforms_email_footer_text', 'wpf_dev_footer_text' );
Updated on November 20, 2017

Was this article helpful?