WPC Smart Wishlist for WooCommerce - Version 4.4.2

Version Description

  • Updated: Optimized the code
Download this release

Release Info

Developer wpclever
Plugin Icon 128x128 WPC Smart Wishlist for WooCommerce
Version 4.4.2
Comparing to
See all releases

Code changes from version 4.4.1 to 4.4.2

languages/woo-smart-wishlist.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the WPC Smart Wishlist for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WPC Smart Wishlist for WooCommerce 4.4.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woo-smart-wishlist\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-10-04T08:47:37+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.5.0\n"
15
  "X-Domain: woo-smart-wishlist\n"
2
  # This file is distributed under the same license as the WPC Smart Wishlist for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WPC Smart Wishlist for WooCommerce 4.4.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woo-smart-wishlist\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-10-07T01:41:50+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.5.0\n"
15
  "X-Domain: woo-smart-wishlist\n"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wpclever.net
4
  Tags: woocommerce, woo, wpc, smart, wishlist, wish list
5
  Requires at least: 4.0
6
  Tested up to: 6.0
7
- Stable tag: 4.4.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -106,6 +106,9 @@ Example:
106
 
107
  == Changelog ==
108
 
 
 
 
109
  = 4.4.1 =
110
  * Added: Wishlist page on My Account
111
 
4
  Tags: woocommerce, woo, wpc, smart, wishlist, wish list
5
  Requires at least: 4.0
6
  Tested up to: 6.0
7
+ Stable tag: 4.4.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
106
 
107
  == Changelog ==
108
 
109
+ = 4.4.2 =
110
+ * Updated: Optimized the code
111
+
112
  = 4.4.1 =
113
  * Added: Wishlist page on My Account
114
 
wpc-smart-wishlist.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WPC Smart Wishlist for WooCommerce
4
  Plugin URI: https://wpclever.net/
5
  Description: WPC Smart Wishlist is a simple but powerful tool that can help your customer save products for buy later.
6
- Version: 4.4.1
7
  Author: WPClever
8
  Author URI: https://wpclever.net
9
  Text Domain: woo-smart-wishlist
@@ -16,7 +16,7 @@ WC tested up to: 6.9
16
 
17
  defined( 'ABSPATH' ) || exit;
18
 
19
- ! defined( 'WOOSW_VERSION' ) && define( 'WOOSW_VERSION', '4.4.1' );
20
  ! defined( 'WOOSW_FILE' ) && define( 'WOOSW_FILE', __FILE__ );
21
  ! defined( 'WOOSW_URI' ) && define( 'WOOSW_URI', plugin_dir_url( __FILE__ ) );
22
  ! defined( 'WOOSW_DIR' ) && define( 'WOOSW_DIR', plugin_dir_path( __FILE__ ) );
@@ -137,7 +137,7 @@ if ( ! function_exists( 'woosw_init' ) ) {
137
 
138
  // user login & logout
139
  add_action( 'wp_login', [ $this, 'wp_login' ], 10, 2 );
140
- add_action( 'wp_logout', [ $this, 'wp_logout' ], 10, 1 );
141
 
142
  // user columns
143
  add_filter( 'manage_users_columns', [ $this, 'users_columns' ] );
@@ -1845,7 +1845,7 @@ if ( ! function_exists( 'woosw_init' ) ) {
1845
  echo '<div class="woosw-item-inner">';
1846
  }
1847
 
1848
- do_action( 'woosw_wishlist_item_before', $product, $product_id, $key );
1849
 
1850
  if ( self::can_edit( $key ) ) {
1851
  // remove
@@ -1857,13 +1857,13 @@ if ( ! function_exists( 'woosw_init' ) ) {
1857
 
1858
  if ( $link !== 'no' ) {
1859
  echo '<a ' . ( $link === 'yes_popup' ? 'class="woosq-link" data-id="' . esc_attr( $product_id ) . '" data-context="woosw"' : '' ) . ' href="' . esc_url( $product->get_permalink() ) . '" ' . ( $link === 'yes_blank' ? 'target="_blank"' : '' ) . '>';
1860
- echo wp_kses( apply_filters( 'woosw_item_image', $product->get_image() ), 'woosw' );
1861
  echo '</a>';
1862
  } else {
1863
- echo wp_kses( apply_filters( 'woosw_item_image', $product->get_image() ), 'woosw' );
1864
  }
1865
 
1866
- do_action( 'woosw_wishlist_item_image', $product, $product_id, $key );
1867
  echo '</' . $td_tag . '>';
1868
 
1869
  // info
@@ -1879,17 +1879,17 @@ if ( ! function_exists( 'woosw_init' ) ) {
1879
 
1880
  echo '<div class="woosw-item--time">' . esc_html( apply_filters( 'woosw_item_time', $product_time, $product ) ) . '</div>';
1881
 
1882
- do_action( 'woosw_wishlist_item_info', $product, $product_id, $key );
1883
  echo '</' . $td_tag . '>';
1884
 
1885
  // action
1886
  echo '<' . $td_tag . ' class="woosw-item--actions">';
1887
  echo '<div class="woosw-item--stock">' . apply_filters( 'woosw_item_stock', wc_get_stock_html( $product ), $product ) . '</div>';
1888
  echo '<div class="woosw-item--add">' . apply_filters( 'woosw_item_add_to_cart', do_shortcode( '[add_to_cart style="" show_price="false" id="' . esc_attr( $product_id ) . '"]' ), $product ) . '</div>';
1889
- do_action( 'woosw_wishlist_item_actions', $product, $product_id, $key );
1890
  echo '</' . $td_tag . '>';
1891
 
1892
- do_action( 'woosw_wishlist_item_after', $product, $product_id, $key );
1893
 
1894
  if ( $layout !== 'table' ) {
1895
  echo '</div><!-- /woosw-item-inner -->';
3
  Plugin Name: WPC Smart Wishlist for WooCommerce
4
  Plugin URI: https://wpclever.net/
5
  Description: WPC Smart Wishlist is a simple but powerful tool that can help your customer save products for buy later.
6
+ Version: 4.4.2
7
  Author: WPClever
8
  Author URI: https://wpclever.net
9
  Text Domain: woo-smart-wishlist
16
 
17
  defined( 'ABSPATH' ) || exit;
18
 
19
+ ! defined( 'WOOSW_VERSION' ) && define( 'WOOSW_VERSION', '4.4.2' );
20
  ! defined( 'WOOSW_FILE' ) && define( 'WOOSW_FILE', __FILE__ );
21
  ! defined( 'WOOSW_URI' ) && define( 'WOOSW_URI', plugin_dir_url( __FILE__ ) );
22
  ! defined( 'WOOSW_DIR' ) && define( 'WOOSW_DIR', plugin_dir_path( __FILE__ ) );
137
 
138
  // user login & logout
139
  add_action( 'wp_login', [ $this, 'wp_login' ], 10, 2 );
140
+ add_action( 'wp_logout', [ $this, 'wp_logout' ] );
141
 
142
  // user columns
143
  add_filter( 'manage_users_columns', [ $this, 'users_columns' ] );
1845
  echo '<div class="woosw-item-inner">';
1846
  }
1847
 
1848
+ do_action( 'woosw_wishlist_item_before', $product, $key );
1849
 
1850
  if ( self::can_edit( $key ) ) {
1851
  // remove
1857
 
1858
  if ( $link !== 'no' ) {
1859
  echo '<a ' . ( $link === 'yes_popup' ? 'class="woosq-link" data-id="' . esc_attr( $product_id ) . '" data-context="woosw"' : '' ) . ' href="' . esc_url( $product->get_permalink() ) . '" ' . ( $link === 'yes_blank' ? 'target="_blank"' : '' ) . '>';
1860
+ echo wp_kses( apply_filters( 'woosw_item_image', $product->get_image(), $product ), 'woosw' );
1861
  echo '</a>';
1862
  } else {
1863
+ echo wp_kses( apply_filters( 'woosw_item_image', $product->get_image(), $product ), 'woosw' );
1864
  }
1865
 
1866
+ do_action( 'woosw_wishlist_item_image', $product, $key );
1867
  echo '</' . $td_tag . '>';
1868
 
1869
  // info
1879
 
1880
  echo '<div class="woosw-item--time">' . esc_html( apply_filters( 'woosw_item_time', $product_time, $product ) ) . '</div>';
1881
 
1882
+ do_action( 'woosw_wishlist_item_info', $product, $key );
1883
  echo '</' . $td_tag . '>';
1884
 
1885
  // action
1886
  echo '<' . $td_tag . ' class="woosw-item--actions">';
1887
  echo '<div class="woosw-item--stock">' . apply_filters( 'woosw_item_stock', wc_get_stock_html( $product ), $product ) . '</div>';
1888
  echo '<div class="woosw-item--add">' . apply_filters( 'woosw_item_add_to_cart', do_shortcode( '[add_to_cart style="" show_price="false" id="' . esc_attr( $product_id ) . '"]' ), $product ) . '</div>';
1889
+ do_action( 'woosw_wishlist_item_actions', $product, $key );
1890
  echo '</' . $td_tag . '>';
1891
 
1892
+ do_action( 'woosw_wishlist_item_after', $product, $key );
1893
 
1894
  if ( $layout !== 'table' ) {
1895
  echo '</div><!-- /woosw-item-inner -->';