diff --git a/functions.php b/functions.php index 16834d7..4154c7b 100644 --- a/functions.php +++ b/functions.php @@ -6,7 +6,12 @@ defined('ABSPATH') || exit(); add_filter('allow_major_auto_core_updates', '__return_true'); add_filter('allow_minor_auto_core_updates', '__return_true'); add_filter('auto_update_theme', '__return_true'); -add_filter('auto_update_plugin', '__return_true'); +add_filter('auto_update_plugin', 'cbsonline_exclude_plugins_from_auto_update', 10, 2); +function cbsonline_exclude_plugins_from_auto_update($update, $item) +{ + return !in_array($item->slug, ['bogo']); +} + // remove parent theme defined filters and actions add_action('after_setup_theme', 'cbsonline_disable_parent_defines');