How to Check if I’m on a Custom Post Type Archive in the Admin Area
In WordPress, the phrase “custom post type archive” usually describes the front-end archive page for a post type. In the admin area, the equivalent screen is the list table for that post type, such as edit.php?post_type=book. If you are adding admin notices, loading scripts, or changing columns, you often need to detect that exact screen. … Read more