I'm building a plugin that extends the functionality of the Contact Form Tuner plugin and customize the email recipients based on different scenarios. The email addresses need to be managed in the plugin settings using forms. Thus, I need to grab the settings from my plugin to be used in the Contact Form Tuner config file.
The problem I'm having is that I can't access my plugin from the Contact Form Tuner config file. The getInstance method returns null. I know I have the namespace and class name right because the same statement works when running it from my plugin class.
I also noticed that Contact Form Tuner seems to be loading before my plugin when testing with die statements in both plugins. Is this the reason?
Is there any way around this?
Any help is appreciated. Thanks!