CHECKING STATUS
I AM LISTENING TO
|

Replace / Unload language files in WordPress

LAST MODIFIED: 5. February 2025
5. February 2016
.SHARE

Table of Contents

add_action( 'unload_textdomain', 'my_unload_textdomain' );

function my_unload_textdomain( $domain ) {
 switch($domain){
  case "remove_textdomain":
   unload_textdomain( 'remove_textdomain' );  
   load_plugin_textdomain( 'remove_textdomain', false, $your_location.'/languages/' );
  break
 }
}

Sometimes you might like to store all language files in your own central location, so that translators have one easy place to access all language files.

Put the above into the functions.php and add textdomain handling for those you want to centralize.

Most current plugins should include the option to store language files to the global WordPress language folder, but that is sometimes just not enough  :) Its all about options ;)

Enjoy coding …

Let’s Talk!

Looking for a reliable partner to bring your project to the next level? Whether it’s development, design, security, or ongoing support—I’d love to chat and see how I can help.

Get in touch,
and let’s create something amazing together!

RELATED POSTS

For the longest time, a kiosk meant one thing: a screen bolted to a wall, waiting for someone brave enough to poke it. A menu. A button or two. If you were lucky, a card reader. The whole device sat there passively, doing nothing until a human chose to interact with it, and most humans […]

You know that feeling when you click a link in a project’s README and it 404s right in your face? Me too. Broken links are the quiet rot of the web — they creep into documentation, blog posts, and large codebases without anyone noticing, and they make otherwise solid content look abandoned. The fix is […]

OCR used to be boring. You threw a scanned page at Tesseract, got back a wall of text with a few mangled characters, and moved on with your life. That was the whole genre for about fifteen years. Then vision language models showed up and ate the entire category. In the last eighteen months, document […]

Alexander

I am a full-stack developer. My expertise include:

  • Server, Network and Hosting Environments
  • Data Modeling / Import / Export
  • Business Logic
  • API Layer / Action layer / MVC
  • User Interfaces
  • User Experience
  • Understand what the customer and the business needs


I have a deep passion for programming, design, and server architecture—each of these fuels my creativity, and I wouldn’t feel complete without them.

With a broad range of interests, I’m always exploring new technologies and expanding my knowledge wherever needed. The tech world evolves rapidly, and I love staying ahead by embracing the latest innovations.

Beyond technology, I value peace and surround myself with like-minded individuals.

I firmly believe in the principle: Help others, and help will find its way back to you when you need it.