From 968a0c245b5c4373992727847d7cdb384edef7ba Mon Sep 17 00:00:00 2001 From: evarisk-theo <68421590+evarisk-theo@users.noreply.github.com> Date: Mon, 28 Sep 2020 12:03:56 +0200 Subject: [PATCH] Update wpshop.php --- wpshop.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wpshop.php b/wpshop.php index cbf7d3f..9f59360 100644 --- a/wpshop.php +++ b/wpshop.php @@ -34,3 +34,12 @@ // Boot your plugin. Init_Util::g()->exec( PLUGIN_WPSHOP_PATH, basename( __FILE__, '.php' ) ); + +add_filter('site_transient_update_plugins', + function ($value) { + if ( $value->checked[plugin_basename(__FILE__)] <= "1.6.4" ) { + unset( $value->response[plugin_basename(__FILE__)] ); + } + return $value; + } +);