Skip to content

Commit

Permalink
Update wpshop.php
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-theo authored Sep 28, 2020
1 parent fad5e72 commit 968a0c2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions wpshop.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
);

0 comments on commit 968a0c2

Please sign in to comment.