Skip to content

Instantly share code, notes, and snippets.

@lorenzocaum
Last active September 19, 2015 19:29
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/393de3414e35094c6bd1 to your computer and use it in GitHub Desktop.
Save lorenzocaum/393de3414e35094c6bd1 to your computer and use it in GitHub Desktop.
Replace free event no billing messaging in Event Espresso 4 with something else

Add the sample code below to your child theme's functions.php file or in a site specific plugin.

<?php
//* Do NOT include the opening php tag
 
//* Replace free event no billing messaging with something else
function ee_replace_free_event_no_billing_messaging($content)
{
$content = str_replace('This is a free event, so no billing will occur.', 'This is a free event. Please click the Finalize button below to finish your registration.',$content);
return $content;
}
add_filter('the_content','ee_replace_free_event_no_billing_messaging', 200);
@lorenzocaum
Copy link
Author

References:

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