Config.php loads before the plugin - Alternative solution?

Thanks for your idea.

I solved it a bit different (with a snippet solution):