Skip to content

Instantly share code, notes, and snippets.

@lorenzocaum
Created July 14, 2016 21:15
Show Gist options
  • Save lorenzocaum/48fe37fc9d0451b77a87fa6bb836c1da to your computer and use it in GitHub Desktop.
Save lorenzocaum/48fe37fc9d0451b77a87fa6bb836c1da to your computer and use it in GitHub Desktop.
How to add a message before or after the ticket selector on the single event page in 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 above the ticket selector
add_action( 'AHEE__ticket_selector_chart__template__before_ticket_selector', 'ee_custom_messaging_before_ticket_selector' );
function ee_custom_messaging_before_ticket_selector() {
 echo 'REPLACE ME';
}
<?php
//* Do NOT include the opening php tag

//* Add a message below the ticket selector
add_action( 'AHEE__ticket_selector_chart__template__after_ticket_selector', 'ee_custom_messaging_after_ticket_selector' );
function ee_custom_messaging_after_ticket_selector() {
 echo 'REPLACE ME';
}

Here is a preview of each of the locations above: https://cl.ly/3h3m3p11182y

@lorenzocaum
Copy link
Author

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