Skip to content

Instantly share code, notes, and snippets.

@lorenzocaum
Last active November 18, 2015 02:15
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 lorenzocaum/2b2d419d092bf13d9116 to your computer and use it in GitHub Desktop.
Save lorenzocaum/2b2d419d092bf13d9116 to your computer and use it in GitHub Desktop.
How to add a message before or after the event details in Event Espresso 4

Add the sample code below to your child theme's functions.php file or in a site specific plugin to add a message before the event details area.

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

//* Add a message before the event details area
add_action( 'AHEE_event_details_before_the_content', 'ee_custom_messaging_before_event_details' );
function ee_custom_messaging_before_event_details() {

 echo 'You are very smart and good looking! We are excited to have you at our event.';
}

Add the sample code below to your child theme's functions.php file or in a site specific plugin to add a message after the event details area.

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

//* Add a message after the event details area
add_action( 'AHEE_event_details_after_the_content', 'ee_custom_messaging_after_event_details' );
function ee_custom_messaging_after_event_details() {

 echo 'You are very smart and good looking! We are excited to have you at our event.';
}