我想知道是否有办法绕过“查看帖子”屏幕(对于自定义帖子类型),只需要一个显示所有字段的编辑屏幕,您可以一次编辑所有字段并简单点击保存 . 因此,不是一次查看所有内容,而是单击每个上面的编辑,您只需一次编辑它们,没有“查看页面”或“编辑个人”页面 .
如果我必须使用插件我会,但我宁愿通过functions.php,我只是不知道从哪里开始,因为我没有经常使用Wordpress .
这可能吗?
在register_post_type()中,将show_ui选项设置为false . 这将阻止wordpress显示自定义编辑屏幕 . http://codex.wordpress.org/Function_Reference/register_post_type然后,使用add_menu_page()创建自定义管理页面http://codex.wordpress.org/Function_Reference/add_menu_page一般来说,一切皆有可能通过functions.php
1 回答
在register_post_type()中,将show_ui选项设置为false . 这将阻止wordpress显示自定义编辑屏幕 . http://codex.wordpress.org/Function_Reference/register_post_type然后,使用add_menu_page()创建自定义管理页面http://codex.wordpress.org/Function_Reference/add_menu_page一般来说,一切皆有可能通过functions.php