-
-
Save Pebblo/4aa2463d2781170f383710ce519ca082 to your computer and use it in GitHub Desktop.
Example of how to filter the 'Nothing in your Event Queue' additional details text.
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_filter_emtpy_queue_desc_text() { | |
$new_text = 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>' | |
); | |
return $new_text; | |
} | |
add_filter( 'FHEE__Single_Page_Checkout__display_spco_reg_form__empty_msg', 'tw_ee_filter_emtpy_queue_desc_text' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment