• Resolved orvillem

    (@orvillem)


    I would like to change the text “View full calendar” to “back to calendar”. I looked in my c-panel on my host but could not find the lang file. Can you tell me where the lang file is.

Viewing 1 replies (of 1 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    You can use custom filters to alter any piece of translatable text by using the ‘gettext’ filters in WordPress (https://codex.wordpress.org/Plugin_API/Filter_Reference/gettext) – this is a great way to alter the text without editing a plug-in.

    E.g.

    
    add_filter( 'gettext', 'mc_custom_back_to_calendar', 20, 3 );
    function mc_custom_back_to_calendar( $translated, $original, $domain ) {
        if ( $domain == 'my-calendar' && $original == 'View full calendar' ) {
            return 'Back to calendar';
        }
    
        return $translated;
    }
    
Viewing 1 replies (of 1 total)
  • The topic ‘Change text’ is closed to new replies.