I just discovered a new meta field on the newly created custom post type page. The meta name is slug, and it’s under the wp editor field. What’s that, and how can I remove it?
2 Answers
You can remove the slug metabox from a post type with remove_meta_box:
add_action( 'add_meta_boxes', 'my_add_meta_boxes' );
function my_add_meta_boxes() {
remove_meta_box( 'slugdiv', 'my_post_type', 'normal' );
}