Skip to content

Instantly share code, notes, and snippets.

@lorenzocaum
Last active June 27, 2016 18:10
Show Gist options
  • Save lorenzocaum/6b75d8d2bd516ece27b9 to your computer and use it in GitHub Desktop.
Save lorenzocaum/6b75d8d2bd516ece27b9 to your computer and use it in GitHub Desktop.
How to add a message to various areas of the thank you page for Event Espresso 4

Add one of more of the sample code snippets below to your child theme's functions.php file or in a site specific plugin. Then change REPLACE ME to the new messaging that you would like to display to your attendees/registrants.

<?php
//* Do NOT include the opening php tag

//* Add a message to the top of the thank you page for Event Espresso 4
add_action( 'AHEE__thank_you_page_overview_template__top', 'ee_custom_messaging_top_thank_you_page' );
function ee_custom_messaging_top_thank_you_page() {
 echo 'REPLACE ME';
}
<?php
//* Do NOT include the opening php tag

//* Add a message towards the middle of the thank you page for Event Espresso 4
add_action( 'AHEE__thank_you_page_overview_template__content', 'ee_custom_messaging_middle_thank_you_page' );
function ee_custom_messaging_middle_thank_you_page() {
 echo 'REPLACE ME';
}
<?php
//* Do NOT include the opening php tag

//* Add a message to the bottom of the thank you page for Event Espresso 4
add_action( 'AHEE__thank_you_page_overview_template__bottom', 'ee_custom_messaging_bottom_thank_you_page' );
function ee_custom_messaging_bottom_thank_you_page() {
 echo 'REPLACE ME';
}

Here is a preview of each of the locations above: http://cl.ly/image/141m3M1l2j3A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment