Last active
September 28, 2021 03:22
-
-
Save digitalchild/084b12456d0cf0b465d19dfef8235dcd to your computer and use it in GitHub Desktop.
Add custom links to the vendor dashboard in WC Vendors Pro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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