Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsilvadarius/62707c566a59d5777dca35479e7bc0ed to your computer and use it in GitHub Desktop.
Save dsilvadarius/62707c566a59d5777dca35479e7bc0ed to your computer and use it in GitHub Desktop.
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