修改wordpress页面小部件并将其变成插件?
我想制作一个在 WordPress 中添加小部件的插件。
我希望该小部件基于当前页面小部件,但添加通过下拉列表或复选框选择包含或排除的功能,然后按 ID 列出页面。
以下 本指南 我能够通过破解位于 wp-includes/default_widgets.php 中的核心文件来更改排除以包含。
这是原始的default_widgets.php:
我如何进行更改并打开它变成一个插件?
非常感谢
I would like to make a plug-in that adds a widget in wordpress.
I would like the widget to be based on the current pages widget but add the ability to select either include OR exclude by drop down or checkbox then list pages by ID.
Following this guide I was able to change the exclude to include by hacking the core file located in wp-includes/default_widgets.php.
Here is the original default_widgets.php:
How do I make the changes and turn it into a plugin?
Many Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在这里找到了解决方案: http://wordpress.org/extend/plugins/widgets-reloaded/< /a>
Found a solution here: http://wordpress.org/extend/plugins/widgets-reloaded/