Skip to content

Commit

Permalink
Update woocommerce-show-attributes.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Isabel C committed Aug 10, 2014
1 parent bea00a3 commit 9a8b431
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions woocommerce-show-attributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ public static function get_instance() {
}

private function __construct() {
add_action( 'plugins_loaded', 'isa_woo_max_qty_load_textdomain' );
add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
add_action('woocommerce_single_product_summary', array( $this, 'show_attributes' ), 25);
add_filter( 'woocommerce_product_tabs', array( $this, 'additional_info_tab' ), 98 );
}

/**
* Load plugin's textdomain
*/
function isa_woo_max_qty_load_textdomain() {
function load_textdomain() {
load_plugin_textdomain( 'woocommerce-show-attributes', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
}

Expand Down

0 comments on commit 9a8b431

Please sign in to comment.