How could I change the redirect location after a user trashes a page?
Right now they go to all pages here:….wp-admin/edit.php?post_type=page
I want them to go here:……wp-admin/edit.php?post_type=page&page=custom_page_order
How could I change the redirect location after a user trashes a page?
Right now they go to all pages here:….wp-admin/edit.php?post_type=page
I want them to go here:……wp-admin/edit.php?post_type=page&page=custom_page_order
You must be logged in to post a comment.
Hook into
load-{screen_id}
and check if the$_GET['trashed']
variable is 1 or above.This works – and I’m not aware of a better way of doing this…