-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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