-
-
Save anonymous/9527424b786c153b1842 to your computer and use it in GitHub Desktop.
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 | |
/* | |
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