Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Created May 1, 2018 09:10
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 Pebblo/43556e9fc43df5696fb8eea15b356b9b to your computer and use it in GitHub Desktop.
Save Pebblo/43556e9fc43df5696fb8eea15b356b9b to your computer and use it in GitHub Desktop.
Example of how to change the empty event queue return to text/url
<?php //Please do not include the opening PHP tag if you already have one.
function tw_ee_change_event_queue_return_text(){
return sprintf(
__(
'You need to %1$sReturn to Events list%2$sselect at least one event%3$s before you can proceed with the registration process.',
'event_espresso'
),
'<a href="'
. get_post_type_archive_link('espresso_events')
. '" title="',
'">',
'</a>'
);
}
add_filter('FHEE__Single_Page_Checkout__display_spco_reg_form__empty_msg', 'tw_ee_change_event_queue_return_text' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment