php - How can I resolve Namespace conflict in WordPress Plugin?Get the solution ↓↓↓
I have developed a WordPress Plugin in PHP PSR-4 Autoloading. When I duplicate the plugin with a different name and active from the plugin section it replaces remove plugin side nave by the Last plugin. Suppose : First Plugin Name: MainPlugin Second Plugin Name: TestPlugin
..First Plugin and second plugin's side menu is not the same as position, slug, name but first plugin sidenav remove when I active second Plugin. My plugin Link: https://github.com/emrancu/PluginMaster Please help me: How to resolve this issue? And how to activate two plugins without any problem?
It's Not possible to create dynamic Namespace. You can not run same namespace with two projects. If you are active then WordPress calls the last namespace because the first namespace replace by the last namespace if the namespace is the same.
People are also looking for solutions of the problem: php_network_getaddresses: getaddrinfo failed: temporary failure in name resolution
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.