Skip to content

Instantly share code, notes, and snippets.

@digitalchild
Last active September 28, 2021 03:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digitalchild/084b12456d0cf0b465d19dfef8235dcd to your computer and use it in GitHub Desktop.
Save digitalchild/084b12456d0cf0b465d19dfef8235dcd to your computer and use it in GitHub Desktop.
Add custom links to the vendor dashboard in WC Vendors Pro
<?php
// Sourced from https://docs.wcvendors.com/knowledge-base/add-menu-item-to-dashboard/
// Add this to your themes functions.php.
function wcv_add_menu_item( $pages ){
$pages[] = array(
'label' => 'First Page',
'slug' => 'http://wcvendors.com/support',
'actions' => array()
);
$pages[] = array(
'label' => 'Second page',
'slug' => 'http://wcvendors.com/support',
'actions' => array()
);
return $pages;
}
add_filter( 'wcv_pro_dashboard_urls', 'wcv_add_menu_item' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment