Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Last active May 16, 2017 00: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 Pebblo/4aa2463d2781170f383710ce519ca082 to your computer and use it in GitHub Desktop.
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.
<?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