Site logo

Archived topic

How to let GP Theme and GP Premium remain English

7 replies · Started by weiqispace on August 6, 2021

Viewing posts 1–8 of 8

How to let GP Theme and GP Premium remain English?

Even wp admin choose non-english version.

Hi there,

Not sure if this is possible, unfortunately.

WordPress set the theme/plugin languages to match your WP admin settings automatically.

I know some plugins can use action to remain language to English even wp admin is another language.

For example, I use Beaver Builder plugin and I want it to keep English.

I add code snippet on functions.php and done.

add_action( 'after_setup_theme', function() {
	unload_textdomain( 'fl-builder' );
}, 11 ); 

Hi there,

looking at the load_theme_textdomain( 'generatepress' ); in GP it passes that value to load_textdomain.

So it might be as simple as:

add_action( 'after_setup_theme', function() {
	unload_textdomain( 'generatepress' );
}, 100 ); 

I increased the priority to make sure it fires later. Not sure, but worth a shot.

Thanks

Did that work ?

Yes it works. =)

Awesome - thanks for letting us know.

This archived topic is closed to new replies.