Suppress errors when using global function

I'm using the NinjaForms plugin which defines a Ninja_Forms() global function.

Although I can call it without problem, I still get a warning/error

Undefined function 'Ninja_Forms'.

If this were a variable I'd use global foo to suppress that.

How do I do that for a global function - i.e. is there a global equivalent for functions?

Topic plugin-ninja-forms globals functions php Wordpress

Category Web


According to comments above, there is no "global" equivalent for functions. So I'm just gonna live with the warning, since everything works.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.