fix(plugins): trigger plugin hooks when saving plugin settings

The introduction of setPrivateSetting led to failing to trigger the
plugin hooks.

Fixes #6820, #7502