WordPress supprimer Ajouter un nouveau bouton
// You can do this when registering your post type. Like this:
register_post_type(
'custom_post_type',
array(
'description' => __( 'description', 'textdomain' ),
// etc, etc. Important to remove the 'add new' button:
'map_meta_cap' => true,
'capabilities' => array( 'create_posts' => false )
)
);
Mushy Mosquito