In a clients site i needed to add a menu item under the dashboard, this link is to go to a external url. i managed this with the following code:
add_dashboard_page( 'redirecting', 'Docs', 'read', 'docs', 'redirect_docs');
function redirect_docs(){
wp_redirect( URL_HERE );
exit;
}
This worked fine upto now. My client has now asked me to make the link open in a new tab/window and not change the current page.
Is this possible? If so any suggestions how?
Thanks Sofia xXx