Skip to content

Commit

Permalink
Release 1.0.4 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
emgk committed Nov 25, 2020
1 parent d7e46b5 commit 631b169
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
22 changes: 18 additions & 4 deletions instock-init.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php
/**
* Plugin Name: Woo In-Stock Notifier
* Version: 1.0.3
* Plugin URI: http://emgk.github.io/
* Version: 1.0.4
* Plugin URI: http://govind.js.org/
* Author: Govind Kumar
* Author URI:http://emgk.github.io
* Author URI: http://govind.js.org/
* Description: Customers can build a waiting list of products those are out of stock. They will be notified automatically via email, when products come back in stock.
* Text Domain:in-stock-notifier
* Domain Path: /language/
* Domain Path: /languages/
* License: GPL2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* WC requires at least: 2.5.0
Expand Down Expand Up @@ -58,6 +58,20 @@
add_action( 'admin_notices', 'wsc_woo_requires' );
}

/**
* Translate plugins
*
* @since 1.0.4
*/
add_action( 'plugins_loaded', 'wsn_localization_plugin' );

/**
* Load plugin's language file
*/
function wsn_localization_plugin() {
load_plugin_textdomain( 'in-stock-notifier', false, WSN_PATH . 'languages/' );
}

/**
* If WooCommerce isn't activated then show the admin the notice to activate
* the WooCommerce plugin order to make this plugin runnable.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "woo-in-stock-notifier",
"version": "1.0.3",
"version": "1.0.4",
"description": "Customers can build a waiting list of products those are out of stock. They will be notified automatically via email, when products come back in stock.",
"url": "http://emgk.github.io",
"author": "Govind Kumar",
Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ When the email is sent to the sent to the user, this plugin allows you to move t

== Changelog ==

= 1.0.4 =
* Make translatable

= 1.0.3 =
* Fix WC_Email issues
* Trigger email when stock status changes.
Expand Down

0 comments on commit 631b169

Please sign in to comment.