Support

Home Forums Event Espresso Premium Add/Change Registration status name

Add/Change Registration status name

Posted: November 25, 2015 at 7:16 am

Viewing 1 reply thread


Erica Vandiver

November 25, 2015 at 7:16 am

Is it possible to change the name of a registration status or add a new one? It would be easier for our users to use ‘Missing Documents’ and ‘Missing Scores’ instead of remembering that Not Approved is used for one situation and Declined is used for another.


Lorenzo Orlando Caum

  • Support Staff

November 25, 2015 at 11:05 am

Hi, those can be changed by using a gettext filter. Note that this will change those phrases site wide:

function ee_adjust_messaging_registration_statuses( $translated, $original, $domain ) {
 
    // This is an array of original strings
    // and what they should be replaced with
    $strings = array(
        'Not Approved' => 'Replace with new messaging',
        'Declined' => 'Replace with new messaging',
        // Add some more strings here
    );
 
    // See if the current string is in the $strings array
    // If so, replace its translation
    if ( isset( $strings[$original] ) ) {
        // This accomplishes the same thing as __()
        // but without running it through the filter again
        $translations = get_translations_for_domain( $domain );
        $translated = $translations->translate( $strings[$original] );
    }
 
    return $translated;
}
 
add_filter( 'gettext', 'ee_adjust_messaging_registration_statuses', 10, 3 );


Lorenzo

Viewing 1 reply thread

The support post ‘Add/Change Registration status name’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso