From da997b4799bc599583fbc5fa5e6d0148c98c5eaf Mon Sep 17 00:00:00 2001 From: Kim Oliver Drechsel Date: Sun, 8 Feb 2026 00:10:52 +0100 Subject: [PATCH] fix: enable automatic updates for the Integrate Rybbit plugin --- integrate-rybbit/integrate-rybbit.php | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/integrate-rybbit/integrate-rybbit.php b/integrate-rybbit/integrate-rybbit.php index 6517f27..fd5094f 100644 --- a/integrate-rybbit/integrate-rybbit.php +++ b/integrate-rybbit/integrate-rybbit.php @@ -1,7 +1,7 @@ plugin) && $item->plugin === INTEGRATE_RYBBIT_PLUGIN_BASENAME) { - // Return true to enable auto-updates, false to disable - // null means let WordPress use the default/user preference - return $update; - } - return $update; -}, 10, 2); - // Initialize context-specific logic if (is_admin()) { new Integrate_Rybbit_Admin(); @@ -83,4 +72,12 @@ if (get_option('rybbit_delete_data_on_uninstall', null) === null) { add_option('rybbit_delete_data_on_uninstall', '1'); } -}); \ No newline at end of file +}); + +// Enable automatic updates for this plugin +add_filter('auto_update_plugin', function ($update, $item) { + if (isset($item->plugin) && $item->plugin === INTEGRATE_RYBBIT_PLUGIN_BASENAME) { + return true; + } + return $update; +}, 10, 2);