Add Back Buttons to Edit Screens in the WordPress Admin

Add Back Buttons To Edit Screens In The Wordpress Admin Image

Okay, okay. Seriously now… This is almost always the first snippet I install because when it’s not active I start twitching and can hardly function without it. Also, it’s sooooo handy when you’re editing your site on a mobile device, so you don’t have to dig through menus. Lazy===Good.

Before… eugghh 🤢


After… ahhh 🥹

What it does…

Attempts to add a “🔙” Back button to WordPress admin screens.

Why it does it…

Hopefully, it saves you time from needing to scroll and find the admin menu links.

How it does it…

Adds a javascript to the admin footer that tries to determine the parent admin page of the page you’re currently on. I’ve re-written this a couple times and the current version is my best yet, but if it’s missing something for you, lemme know!

Use the JSON file for easily importing into your CodeSnippetsPro plugin. Use the PHP file or just copy/paste the code sample into your functions.php if you’re not using CodeSnippetsPro.

Related Snips

Leave a Reply

Your email address will not be published. Required fields are marked *