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

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

Fixes #6820, #7502
Merge pull request #7505 from jeabakker/plugin-settings-save

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