mirror of
https://github.com/szepeviktor/wordpress-website-lifecycle.git
synced 2026-07-27 02:55:34 +08:00
26 lines
575 B
PHP
26 lines
575 B
PHP
<?php
|
|
|
|
/*
|
|
* Plugin Name: Disable WPBakery Visual Composer plugin updates
|
|
* Plugin URI: https://github.com/szepeviktor/wordpress-website-lifecycle
|
|
*/
|
|
|
|
add_action(
|
|
'plugins_loaded',
|
|
static function () {
|
|
global $vc_manager;
|
|
if (!is_object($vc_manager) || !method_exists($vc_manager, 'disableUpdater')) {
|
|
return;
|
|
}
|
|
|
|
$vc_manager->disableUpdater(true);
|
|
add_filter(
|
|
'pre_option_wpb_js_js_composer_purchase_code',
|
|
'__return_true',
|
|
10,
|
|
0
|
|
);
|
|
},
|
|
10,
|
|
0
|
|
);
|