Skip to content

Commit

Permalink
textdomain should be loaded on init. Fixes #16
Browse files Browse the repository at this point in the history
  • Loading branch information
Isabel committed Apr 27, 2017
1 parent 99e398e commit f55960b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions woocommerce-max-quantity.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: WooCommerce Max Quantity
Plugin URI: https://isabelcastillo.com/free-plugins/woocommerce-max-quantity
Description: Set a limit for the max quantity of products that can be added to cart, per product. Now with individual product limits.
Version: 1.4.1.alpha.1
Version: 1.4.1.alpha.2
Author: Isabel Castillo
Author URI: https://isabelcastillo.com
License: GPL2
Expand Down Expand Up @@ -39,7 +39,7 @@
function isa_wc_max_qty_load_textdomain() {
load_plugin_textdomain( 'woocommerce-max-quantity', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
}
add_action( 'plugins_loaded', 'isa_wc_max_qty_load_textdomain' );
add_action( 'init', 'isa_wc_max_qty_load_textdomain' );

/**
* Add the option to WooCommerce products tab
Expand Down

0 comments on commit f55960b

Please sign in to comment.