Skip to content

Instantly share code, notes, and snippets.

@lorenzocaum
Created May 11, 2016 12:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lorenzocaum/4778a56ba7a84f8261874311105c2968 to your computer and use it in GitHub Desktop.
Save lorenzocaum/4778a56ba7a84f8261874311105c2968 to your computer and use it in GitHub Desktop.
How to add a message below the attendee information form in registration checkout for Event Espresso 4
<?php
//* Do NOT include the opening php tag

function ee_add_custom_messaging_after_attendee_information_registration_checkout_footer() {
        ?>
        <p style="text-align: center; font-weight:bold;">Replace Me</p>
        <?php
}
add_action( 'AHEE__SPCO__reg_form_footer', 'ee_add_custom_messaging_after_attendee_information_registration_checkout_footer' );

The example above can be added to your child theme's functions.php file or a site specific plugin (https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/). Then change Replace Me to your actual messaging.

@idahodesign
Copy link

Dear Lorenzo,

Thanks you for this it was almost perfect. It added the text below the finalise registration buttons so we edited your code to place it above. Here is what we did.

function ee_add_custom_messaging_after_attendee_information_registration_checkout_footer() {
?>

Replace me


<?php
}
add_action( 'AHEE__before_spco_whats_next_buttons', 'ee_add_custom_messaging_after_attendee_information_registration_checkout_footer' );

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