Load plugin textdomain fix
-
The right way to load textdomain should be this:
function __construct() { // Load a text domain add_action('init', array($this, 'load_plugin_textdomain')); ........... } public function load_plugin_textdomain() { load_plugin_textdomain( 'camptix', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); }
Thanks!
- The topic ‘Load plugin textdomain fix’ is closed to new replies.