WordPress: How to show a metabox on any admin page?

南楼画角 提交于 2019-12-05 16:13:42

if my understanding is right you can do it by following

Here is a Demo plugin that can help you get it working.

This WordPress Plugin demonstrates how you can build your own plugin pages using the WordPress provided draggable metaboxes, requires WordPress 2.7 version, supports WordPress 2.8 changed boxing layout engine

Never tried but just an idea. In your plugins options page url pass another parameter say post-type and provide any new post type name. Then use this parameter value in add_meta_box() function $post_type = $_GET['post_type'].

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!