Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example for jetpack contact_form_message filter hook
<?php
function dd_change_successful_contact_form_submission_email_message($text){
$new_text = '<p>Text to add after email message. <a href="https://example.com/" target="_blank">Visit Example.com!</a></p>';
$text = $text . $new_text;
return $text;
}
add_filter ('contact_form_message', 'dd_change_successful_contact_form_submission_email_message');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment