Embed Snippet on Your Site
Admin Menu Editor plugin – Open Custom URL in New Tab (i.e. target=”_blank”)
This code Snippet was initially created to be used with the Admin Menu Editor plugin (https://wordpress.org/plugins/admin-menu-editor/), by enhancing the Custom URL feature in that plugin.
I'm also using Jetpack Boost (https://jetpack.com/boost/), which gets its rating scores from PageSpeed Insights - but Boost doesn't tell you the details. By providing a link in the sidebar menu directly to PageSpeed Insights you can then take action to improve your score, and this Code Snippet allows for that page to open in a new tab. While I had a specific use in mind, this code can be extended to ANY new Admin menu button you create if you want that button to launch a page in a new tab.
Enjoy!
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Comments