• Resolved ambrosejohnn

    (@ambrosejohnn)


    Hello – can you tell me how I can modify the All word in categories filter to another string of my choice like say ‘All Categories’.

Viewing 1 replies (of 1 total)
  • Plugin Author livemesh

    (@livemesh)

    You can use the below code in your theme functions.php to translate any string part of our plugin –

    add_filter( 'gettext', 'mysite_translate_livemesh_addons_strings', 999, 3 );
    
    function mysite_translate_livemesh_addons_strings( $translated, $untranslated, $domain ) {
    
        if ( ! is_admin() && 'livemesh-el-addons' === $domain ) {
    
            switch ( $untranslated ) {
    
                case 'All' :
    
                    $translated = 'All Categories';
                    break;
    
                case 'Any Other String' :
    
                    $translated = 'Your Desired String';
                    break;
    
                // Etc
    
            }
    
        }
    
        return $translated;
    
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Change the All categories filter to another string’ is closed to new replies.