Achtung!

Dieser Artikel enthält PHP-Code und richtet sich an Entwickler. Wir stellen diesen Code als Service zur Verfügung, bieten jedoch keine Unterstützung für Codeanpassungen oder die Entwicklung durch Dritte.

Für zusätzliche Hilfe siehe das Tutorial von WPBeginner zum Hinzufügen von benutzerdefiniertem Code.

Schließen

Beschreibung

The wpforms_email_footer_text filters form notification email footer content.

Parameter

$footer
(string) Content displayed in email footer.

Quelle

wpforms/includes/emails/templates/footer-default.php

Weitere Informationen

The wpforms_email_footer_text filter determines what content, if any, will be displayed underneath the main body of all form notification emails. By default, the footer will include the text “Sent from”, followed by the name of the site. The site name will be linked to the site’s homepage.

Beispiele

/**
 * Filters form notification email footer content.
 *
 * @link   https://wpforms.com/developers/wpforms_email_footer_text/
 *
 * @param  string $footer  Content displayed in email footer.
 * @return string
 */

function wpf_dev_email_footer_text( $footer ) {
 
    $footer = sprintf( __( '<a href="%s" style="color:#bbbbbb;">NEW TEXT HERE %s</a>', 'wpforms' ), esc_url( home_url() ) , '' );
 
    return $footer;
 
}
 
add_filter( 'wpforms_email_footer_text', 'wpf_dev_email_footer_text', 30, 1 );

Article Reference: How to Remove or Change Email Notification Footer Text