Skip to main content
Clarified short answer + added Codex reference as requested in comments
Source Link

Changing the public argument of register_post_type() will remove the link to view your custom post type publicly.

'public' => false, 

ThatSee: WordPress Codex

Note that this will remove Viewalso hide your custom post linktype from the admin navigation menus, which you might not want. To hide the 'View Post' link but keep your post type in the admin menus use show_ui as well like so:

'public'  => false,
'show_ui' => true,
'public' => false, 

That will remove View post link.

Changing the public argument of register_post_type() will remove the link to view your custom post type publicly.

'public' => false, 

See: WordPress Codex

Note that this will also hide your custom post type from the admin navigation menus, which you might not want. To hide the 'View Post' link but keep your post type in the admin menus use show_ui as well like so:

'public'  => false,
'show_ui' => true,
edited body
Source Link
pendjer
  • 128
  • 3
  • 11
'public' => false, 

ThisThat will remove View post link.

'public' => false, 

This will remove View post link.

'public' => false, 

That will remove View post link.

Source Link
pendjer
  • 128
  • 3
  • 11

'public' => false, 

This will remove View post link.