Skip to content

Commit

Permalink
load textdomain
Browse files Browse the repository at this point in the history
  • Loading branch information
Isabel C committed Aug 10, 2014
1 parent 3d1ce03 commit a4deed2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions woocommerce-show-attributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,18 @@ public static function get_instance() {
}

private function __construct() {
add_action( 'plugins_loaded', 'isa_woo_max_qty_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() {
load_plugin_textdomain( 'woocommerce-show-attributes', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
}

/*
* Show our custom product attributes above the Add to Cart button.
* This does not affect nor include attributes which are used for Variations.
Expand Down

0 comments on commit a4deed2

Please sign in to comment.