mirror of
https://gh.wpcy.net/https://github.com/szepeviktor/wordpress-website-lifecycle.git
synced 2026-04-24 05:09:10 +08:00
26 lines
549 B
PHP
26 lines
549 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 (! 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
|
|
);
|