Skip to content

Instantly share code, notes, and snippets.

View rchittock's full-sized avatar

Robert Chittock rchittock

View GitHub Profile
@seventhqueen
seventhqueen / fix-for-visual-composer-update-with-tgmpa.php
Created April 22, 2016 22:09
Disable Visual composer nasty auto update functionality that won't let you update the plugin from TGMPA. A quick snippet that can be dropped in your child theme functions.php
/* Disable VC auto-update */
function seventhqueen_vc_disable_update() {
if (function_exists('vc_license') && function_exists('vc_updater') && ! vc_license()->isActivated()) {
remove_filter( 'upgrader_pre_download', array( vc_updater(), 'preUpgradeFilter' ), 10);
remove_filter( 'pre_set_site_transient_update_plugins', array(
vc_updater()->updateManager(),
'check_update'
) );