Is it possible to change the main admin menu link for a CPT (the link to edit.php) to include URL parameters?
I wan't to make the posts list default to sorting by "title" but I don't like how updating the main query to force a "default" order doesn't set column header to reflect it.
If you click on the "Title" column header it adds the "orderby" url parameter so I'm wondering if there is a hook/filter that would allow me to append this to the menu link.
I can't see how this could be done when registering the new post type and would prefer not to use javascript to add it on after the page has loaded.
pre_get_posts
to identify when you are viewing that CPT, andis_admin()
to make sure you are on the admin side, and then changeorderby
.