WordPress.org

Forums

How to use Yoast SEO backend in english even if WPLANG variable is not english? (1 post)

  1. m3tsys
    Member
    Posted 2 years ago #

    I added this code to my functions.php file

    add_filter('locale', 'wpse27056_setLocale');
    function wpse27056_setLocale($locale) {
        if ( is_admin() ) {
            return 'en_US';
        }
    
        return $locale;
    }

    so the frontend is available in ro_RO and wp-admin is available in en_US

    Well... that almost worked excepting Yoast's WordPress SEO plugin which is translated in romanian.

Topic Closed

This topic has been closed to new replies.

About this Topic