• Resolved gsc-leticia

    (@leticia_larr)


    Hello

    How can I add a sub menu link using add_submenu_page that opens in new windows instead in current one?

    Thanks in advanced

Viewing 4 replies - 1 through 4 (of 4 total)
  • I don’t think that you can. I’d have to look into the code to see if there a hook that might let you hack it.

    You could do it with a little bit of javascript though, if you aren’t opposed to that kind of work-around.

    Thread Starter gsc-leticia

    (@leticia_larr)

    Thanks, If there is no other option I will try with JS.

    Thanks, If there is no other option I will try with JS.

    All you should need to do is add the ‘target=”_blank”‘ attribute. Purely Javascript tricks have a higher chance of being blocked as popups.

    Thread Starter gsc-leticia

    (@leticia_larr)

    Thanks @s_ha_dum

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add sub menu link add_submenu_page that opens in new windows’ is closed to new replies.