admin管理员组文章数量:1327935
Im trying to generate a duplicate page "edit.php" of the post_type "shop_order" beacuse i want the normal one from woocommerce and a custom one to add my code and columns.
Searching in google i find how to create edit.php for custom post types but no how to "replicate" the edit.php for existing post types.
I would put an example of what I have done but nothing has given any result...
Thanks all for your help and sorry for my english.
Here is the code i tryied but it only shows the top menu, the sub menu doesn't show.
add_action('admin_menu','add_my_menus', 10, 2);
function add_my_menus( ) {
add_menu_page(
'Top Menu',
'Top Menu',
'manage_options',
'topmymenu');
add_submenu_page(
'edit.php?post_type=shop_order',
'submenu',
'submenu',
'manage_options',
'submymenu',
'render_my_submenu'
);
}
function render_my_submenu() {
echo 'Custom Link Page';
}
本文标签: custom post typesDuplicate the quotOrdersquot list on Admin Page
版权声明:本文标题:custom post types - Duplicate the "Orders" list on Admin Page 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742159268a2424637.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论