I have an extension that has been working for a couple years now, but my latest submission fails code review because of an "include_once" statement. The error thrown is:
"include_once" statement detected. File manipulations are discouraged.
I have tried different variations of the above including "require_once" and "eval()" but still get similar errors.
The use case is that we give users the ability to extend the functionality of our plugin by including a secondary php file that will add additional data to the output of the plugin. There is a configuration field in the admin panel that allows users the option to include a path to a file, which will be loaded in from the extension. This has been supported and worked for several versions until this latest submission. The code doing this is: