admin管理员组文章数量:1130349
I have seen some best practices in WordPress about enqueueing scripts in WordPress. The scripts that are already in WordPress core should not be added again, but call that from WordPress core. I want to know whether select2 is in WordPress core. I have found only one article saying so
here
I have seen some best practices in WordPress about enqueueing scripts in WordPress. The scripts that are already in WordPress core should not be added again, but call that from WordPress core. I want to know whether select2 is in WordPress core. I have found only one article saying so
here
1 Answer
Reset to default 2It's not. They may have been planning it for 4.1 or 4.2, as suggested in your link, but for whatever reason it never happened.
You can see a list of core-registered scripts that you include here.
Another thing to keep in mind is that many (arguably too many) plugins enqueue their own version of the script, so be aware of potential conflicts.
I have seen some best practices in WordPress about enqueueing scripts in WordPress. The scripts that are already in WordPress core should not be added again, but call that from WordPress core. I want to know whether select2 is in WordPress core. I have found only one article saying so
here
I have seen some best practices in WordPress about enqueueing scripts in WordPress. The scripts that are already in WordPress core should not be added again, but call that from WordPress core. I want to know whether select2 is in WordPress core. I have found only one article saying so
here
1 Answer
Reset to default 2It's not. They may have been planning it for 4.1 or 4.2, as suggested in your link, but for whatever reason it never happened.
You can see a list of core-registered scripts that you include here.
Another thing to keep in mind is that many (arguably too many) plugins enqueue their own version of the script, so be aware of potential conflicts.
本文标签: wp enqueue scriptSelect2 in WordPress
版权声明:本文标题:wp enqueue script - Select2 in WordPress 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749205008a2332416.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论