Skip to content

Instantly share code, notes, and snippets.

/example.php Secret

Created March 9, 2016 20:47
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 anonymous/9527424b786c153b1842 to your computer and use it in GitHub Desktop.
Save anonymous/9527424b786c153b1842 to your computer and use it in GitHub Desktop.
<?php
/*
Plugin Name: Site plugin for tallahasseeseniorfoundation
Description: Site specific code for tallahasseeseniorfoundation
*/
/* Begin Adding Functions Below This Line; Do not include an opening PHP tag as this sample code already includes one! */
//* Change proceed to finalize registration button text in registration checkout
function ee_custom_messaging_registration_checkout( $translated, $original, $domain ) {
$strings = array(
'The event you have selected requires logging in before you can register. You can %sregister for an account here%s if you don\'t have a login.' => 'The event you have selected requires logging in before you can register. <strong>New Users</strong> you can %sregister for an account here%s if you don\'t have a login. <h3>Returning Users</h3>',
'return to %s' => 'Return to %s',
'Attendee #%s' => 'Attendee Details',
);
if ( isset( $strings[$original] ) ) {
$translations = get_translations_for_domain( $domain );
$translated = $translations->translate( $strings[$original] );
}
return $translated;
}
add_filter( 'gettext', 'ee_custom_messaging_registration_checkout', 10, 3 );
/* Stop Adding Functions */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment