bookmark_bordergform_html_message_template_pre_send_email

Allows the template for the HTML-formatted message to be overridden.

Usage

add_filter( 'gform_html_message_template_pre_send_email', 'notification_template' );

function notification_template( $template ) {
    $template = '
        <html>
            <head>
                <title>{subject}</title>
            </head>
            <body>
                {message}
            </body>
        </html>';

    return $template;
}

Parameters

  • $template string

    The template for the html formatted message. Use {message} and {subject} as placeholders.

Source

  • common.php