¡Atención!

Este artículo contiene código PHP y está destinado a desarrolladores. Ofrecemos este código como cortesía, pero no proporcionamos soporte para personalizaciones de código o desarrollo de terceros.

Para obtener ayuda adicional, consulta el tutorial de WPBeginner sobre cómo añadir código personalizado.

Descartar

Descripción

The wpforms_email_footer_text filters form notification email footer content.

Parámetros

$footer
(string) Content displayed in email footer.

Origen

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

Más Información

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.

Ejemplos

/**
 * 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