You can use wp_redirect to do this.
function dashboard_redirect() {
wp_redirect( admin_url( 'edit.php?post_type=customposttype' ) );
}
add_action('load-index.php', 'dashboard_redirect');
You can use wp_redirect to do this.
function dashboard_redirect() {
wp_redirect( admin_url( 'edit.php?post_type=customposttype' ) );
}
add_action('load-index.php', 'dashboard_redirect');