Atenção!

Este artigo contém código PHP e destina-se a desenvolvedores. Oferecemos este código como uma cortesia, mas não fornecemos suporte para personalizações de código ou desenvolvimento de terceiros.

Para orientação extra, consulte o tutorial do WPBeginner sobre como adicionar código personalizado.

Dispensar

Descrição

The wpforms_email_footer_text filters form notification email footer content.

Parâmetros

$footer
(string) Content displayed in email footer.

Fonte

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

Mais Informações

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.

Exemplos

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