Open Custom Dashboard Menu Item using WP Hooksby@shabnam
382 reads
382 reads

Open Custom Dashboard Menu Item using WP Hooks

by Mushrit Shabnam3mJuly 18th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

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"

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Open Custom Dashboard Menu Item using WP Hooks
Mushrit Shabnam HackerNoon profile picture
Mushrit Shabnam

Mushrit Shabnam

@shabnam

Share Your Thoughts

About Author

Mushrit Shabnam HackerNoon profile picture
Mushrit Shabnam@shabnam

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
L O A D I N G
. . . comments & more!