Different dashboard language for admin
-
Hi, I’m designing my first wp site for an organisation and tried to change some php code that changed the default language of the dashboard when the admin (I) wasn’t logged in..
wp-conf.php replace define (‘WPLANG’, ”); with…if ( current_user_can('manage_options') ) { define ('WPLANG', ''); } else { define ('WPLANG', 'fi');}
…but i get the error…
Fatal error: Call to undefined function current_user_can() in /home/oulunosast/domains/oulunosasto.fi/public_html/wp/wp-config.php on line 76I don’t know too much about coding, but it looks like current_user_can() is not global. Is it safe to try and make this known in the wp-conf.php script?
- The topic ‘Different dashboard language for admin’ is closed to new replies.