Skip to content

Instantly share code, notes, and snippets.

@2ndkauboy
Created September 25, 2015 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2ndkauboy/555a0ae9fb80c2eea56e to your computer and use it in GitHub Desktop.
Save 2ndkauboy/555a0ae9fb80c2eea56e to your computer and use it in GitHub Desktop.
<?php
/**
* Plugin Name: MailPoet Load Textdomain Fix
* Description: This plugin will deactivate the translation laoding from the MailPoet plugin and load it in the correct was instead, so other plugins that hook into the loading of translations works together with MailPoet
* Version: 1.0
* Author: Bernhard Kau
* Author URI: http://kau-boys.com
* License: GPLv3
* License URI: http://www.gnu.org/licenses/gpl-3.0
*/
function wysija_newsletters_load_textdomain_fix(){
remove_action( 'init', array( 'WYSIJA', 'load_lang_init' ) );
load_plugin_textdomain( 'wysija-newsletters', false, 'wysija-newsletters/languages' );
}
add_action( 'plugins_loaded', 'wysija_newsletters_load_textdomain_fix' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment