version update disabler::
WP Bakery Visual Composer:
GO: wp-content/task/wp-content/plugins/js_composer/include/classes/updaters/class-vc-updating-manager.php >>
remove $remote_version = $this->getRemote_version();
public function check_update( $transient ) {
// Extra check for 3rd plugins
if ( isset( $transient->response[ $this->plugin_slug ] ) ) {
return $transient;
}
// Get the remote version
$remote_version = $this->getRemote_version();
}
public function check_update( $transient ) {
// Extra check for 3rd plugins
if ( isset( $transient->response[ $this->plugin_slug ] ) ) {
return $transient;
}
}
version check disabler::
WP Bakery Visual Composer
function __construct( $current_version, $update_path, $plugin_slug ) {
// Set the class public variables
$this->current_version = $current_version;
$this->update_path = $update_path;
$this->plugin_slug = $plugin_slug;
$t = explode( ‘/’, $plugin_slug );
$this->slug = str_replace( ‘.php’, ”, $t[1] );
// define the alternative API for updating checking
add_filter( ‘pre_set_site_transient_update_plugins’, array(
$this,
‘check_update’,
) );
// Define the alternative response for information checking
add_filter( ‘plugins_api’, array(
$this,
‘check_info’,
), 10, 3 );
add_action( ‘in_plugin_update_message-‘ . vc_plugin_name(), array(
$this,
‘addUpgradeMessageLink’,
) );
}
function __construct( $current_version, $update_path, $plugin_slug ) {
// Set the class public variables
$this->current_version = $current_version;
$this->update_path = $update_path;
$this->plugin_slug = $plugin_slug;
$t = explode( ‘/’, $plugin_slug );
$this->slug = str_replace( ‘.php’, ”, $t[1] );
// Define the alternative response for information checking
add_filter( ‘plugins_api’, array(
$this,
‘check_info’,
), 10, 3 );
add_action( ‘in_plugin_update_message-‘ . vc_plugin_name(), array(
$this,
‘addUpgradeMessageLink’,
) );
}