Open Custom Dashboard Menu Item using WP Hooks

Written by shabnam | Published 2020/07/18
Tech Story Tags: wordpress | php | javascript | tutorial | blog

TLDR Dokan's vendor dashboard allows you to open a custom menu item in a new tab. We will use a bit of custom JS to generate a menu item with title Help. We need to add the code in your child theme's functions.php file and then try to visit the vendor dashboard. It should show you the menu item and then open the link in new tab. You can see title andurl as keys and there are values against these keys. If you want to change the label from Help to anything else say contact, this will be the modification: "Contact"via the TL;DR App

no story

Published by HackerNoon on 2020/07/18