How to avoid Fatal Error because of function redefinition
-
I have developed multiple plugins for numerous different function-alities. I have modularized my code to have common functions in a file. The problem is that if a user were to install multiple plugins of mine it would trigger Fatal Errors.
How should I install my plugins so as to not get a fatal error because of redefinition of the same functions across various plugins?
What is the right way to install my plugins?
I’m doing it the brain-dead way of
wp-content/plugins/my1STplugin/mylib.php
wp-content/plugins/my2NDplugin/mylib.php
wp-content/plugins/my3RDplugin/mylib.phpThanks for your ideas,
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to avoid Fatal Error because of function redefinition’ is closed to new replies.