How can i redirect click to new admin page not to edit screen in post table

On functions.php function disallowed_admin_pages() { global $pagenow; # Check current admin page. if ( $pagenow == ‘post.php’ && isset( $_GET[‘post’] ) && $_GET[‘action’] == ‘edit’ && (get_post_type( $_GET[‘post’]) ==’Post_type’ )) { wp_redirect( admin_url( ‘/edit.php?post_type=post_type&page=page_to_redirct&post=”.$_GET[“post’] ) ); exit; } } add_action( ‘admin_init’, ‘disallowed_admin_pages’ ); page_to_redirect is already created an included in functions.php

How To Create WordPress Dashboard Item

What you need to do in your case – is to create a custom post type. Please read about post types in WordPress here https://wordpress.org/support/article/post-types/ You can use a plugin to create Case Studies post type https://uk.wordpress.org/plugins/custom-post-type-ui/