Skip to content

Instantly share code, notes, and snippets.

@jkohlbach
Created January 24, 2025 04:53
Show Gist options
  • Save jkohlbach/5fae46aa5ec859a9a4ea783e54ce8702 to your computer and use it in GitHub Desktop.
Save jkohlbach/5fae46aa5ec859a9a4ea783e54ce8702 to your computer and use it in GitHub Desktop.
No translation disable pre_load_textdomain speed hack
/**
* If we don't have translation, disable pre_load_textdomain to speed up the site.
*/
add_filter( 'pre_load_textdomain', '__return_false' );
@jkohlbach
Copy link
Author

If you like this, you might like StoreAgent - Ecommerce AI tools for store owners

@wordhostnz
Copy link

Thanks for this. It halved the blocking time!

@jkohlbach
Copy link
Author

You're welcome! Great result!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment