• How do I properly modify the text below found in this file alo-easymail-subscr-page.php

    To unsubscribe the newsletter for good click this button

    Your subscription was successfully deleted. Bye bye.

    Thank you,
    Michael

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author eventualo

    (@eventualo)

    Hi, for the moment you can use a filter to edit these texts. You can add the following code in your theme functions.php or in a mu-plugin:

    
    function custom_easymail_edit_texts( $translated_text, $text, $domain ) {
    
        if ( 'alo-easymail' == $domain ) {
        
            switch ( $text ) {
                case "Your subscription was successfully deleted. Bye bye.":
                    $translated_text = 'Your new text.....';
                    break;
    
                case "To unsubscribe the newsletter for good click this button":
                    $translated_text = 'Your new text.....';
            }
        
        }
    
        return $translated_text;
    }
    
    add_filter( 'gettext', 'custom_easymail_edit_texts', 20, 3 );
    

    In next plugin release, I’ll add these texts in plugin setting page in backend.

    Thread Starter mviens

    (@mviens)

    Thank you so much for your prompt reply and for the solution. It worked perfectly.

    The other text that would be handy to easily edit is the “value” for the Submit button: UNSUBSCRIBE ME.

    Thanks,
    Michael

    Plugin Author eventualo

    (@eventualo)

    I’ve just released the v.2.9.8 that includes new options fot those 2 texts.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to modify ALO EasyMail unsubscribe text’ is closed to new replies.