Skip to content

Instantly share code, notes, and snippets.

@thierrypigot
Last active August 22, 2016 16:09
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thierrypigot/3e4e3983739a2dc3a2de1a7062f53d1f to your computer and use it in GitHub Desktop.
Save thierrypigot/3e4e3983739a2dc3a2de1a7062f53d1f to your computer and use it in GitHub Desktop.
Bookmark to go in the WordPress Admin. Add a new Bookmark and copy this in the URL field ;)
javascript:( function(){ with(window.open('http://'+window.location.host+'/wp-admin','_blank')){ document.close(); } })()
@Dimasmagadan
Copy link

To open in new window
javascript:(function(){window.open('http://'+location.hostname+'/wp-admin')})();

To open in same window
javascript:(function(){window.location='http://'+location.hostname+'/wp-admin';})();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment