Skip to content

Instantly share code, notes, and snippets.

@Kodzhesyan
Last active March 5, 2023 16:16
Show Gist options
  • Save Kodzhesyan/d42bc5bd577689058f0cb7bf4fd3a42c to your computer and use it in GitHub Desktop.
Save Kodzhesyan/d42bc5bd577689058f0cb7bf4fd3a42c to your computer and use it in GitHub Desktop.
Відключити оновлення деяких плагінів
<?php
// Відключити оновлення деяких плагінів
add_filter( 'site_transient_update_plugins', function ( $value ) {
unset( $value->response['megamenu-pro/megamenu-pro.php'] );
unset( $value->response['woocommerce-smart-coupons/woocommerce-smart-coupons.php'] );
unset( $value->response['faview-virtual-reviews-for-woocommerce/faview-virtual-reviews-for-woocommerce.php'] );
return $value;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment