diff --git a/projects/packages/account-protection/src/class-account-protection.php b/projects/packages/account-protection/src/class-account-protection.php index b1eb031854e26..10665d5b42770 100644 --- a/projects/packages/account-protection/src/class-account-protection.php +++ b/projects/packages/account-protection/src/class-account-protection.php @@ -96,8 +96,8 @@ protected function register_hooks(): void { add_action( 'jetpack_deactivate_module_' . self::ACCOUNT_PROTECTION_MODULE_NAME, array( $this, 'on_account_protection_deactivation' ) ); // Do not run in unsupported environments - add_action( 'jetpack_get_available_modules', array( $this, 'remove_module_on_unsupported_environments' ) ); - add_action( 'jetpack_get_available_standalone_modules', array( $this, 'remove_standalone_module_on_unsupported_environments' ) ); + add_filter( 'jetpack_get_available_modules', array( $this, 'remove_module_on_unsupported_environments' ) ); + add_filter( 'jetpack_get_available_standalone_modules', array( $this, 'remove_standalone_module_on_unsupported_environments' ) ); } /**