admin管理员组文章数量:1130349
I'm trying to make another copy of this plugin SyncFields It contains just one file syncfields.php, So I tried to edit it and edit the functions with another name but it didn't work It appeared in the plugins page and activated it , but didn't find it in the menu I don't know what what did I missed
I'm trying to make another copy of this plugin SyncFields It contains just one file syncfields.php, So I tried to edit it and edit the functions with another name but it didn't work It appeared in the plugins page and activated it , but didn't find it in the menu I don't know what what did I missed
Share Improve this question asked Nov 24, 2018 at 2:36 Gamal ElwazeeryGamal Elwazeery 259 bronze badges1 Answer
Reset to default 0Most probably you haven't changed all IDs inside that plugin.
For example, when you register admin menu page, you have to pass its slug, which is unique identifier for that page. If you register two pages with the same slug, only one will be visible.
It's the same with registering options, custom post types, and so on...
So renaming only functions won't solve the problem...
I'm trying to make another copy of this plugin SyncFields It contains just one file syncfields.php, So I tried to edit it and edit the functions with another name but it didn't work It appeared in the plugins page and activated it , but didn't find it in the menu I don't know what what did I missed
I'm trying to make another copy of this plugin SyncFields It contains just one file syncfields.php, So I tried to edit it and edit the functions with another name but it didn't work It appeared in the plugins page and activated it , but didn't find it in the menu I don't know what what did I missed
Share Improve this question asked Nov 24, 2018 at 2:36 Gamal ElwazeeryGamal Elwazeery 259 bronze badges1 Answer
Reset to default 0Most probably you haven't changed all IDs inside that plugin.
For example, when you register admin menu page, you have to pass its slug, which is unique identifier for that page. If you register two pages with the same slug, only one will be visible.
It's the same with registering options, custom post types, and so on...
So renaming only functions won't solve the problem...
本文标签: Make another copy of a plugin and install it
版权声明:本文标题:Make another copy of a plugin and install it 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749154105a2324319.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论