pixel-d
11/29/2017 - 6:52 PM

WordPress Filter Plugin Updates

/* Disable plugin updates for Timber */
 
function xy_filter_plugin_updates( $value ) {
  $plugin = 'timber-library/timber.php';
 
  if ( empty( $value ) || empty( $value->response[$plugin] ) ) {
    return $value;
  }
 
  unset( $value->response[$plugin] );
  return $value;
}
add_filter( 'site_transient_update_plugins', 'xy_filter_plugin_updates' );