When you register the CPT set show_ui
to false. For example:
$args = array(
'labels' => $labels,
'public' => true,
'publicly_queryable' => true,
'show_ui' => false, // <-- here
'show_in_menu' => true,
'query_var' => true,
'rewrite' => array( 'slug' => 'book' ),
'capability_type' => 'post',
'has_archive' => true,
'hierarchical' => false,
'menu_position' => null,
'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' )
);
You will now have to construct an interface for the CPT just as you’d construct one for a admin plugin page. You are not reconstructing or editing edit.php
. Your interface will have a different address as given when you register the admin page.