Last active
March 3, 2023 04:35
-
-
Save digitalchild/a6c4443a1bdf5a89db5b to your computer and use it in GitHub Desktop.
Add custom link to pro dashboard navigation
This file contains hidden or 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 | |
// Add this to your themes function.php change the values to suit where you want the link to go. | |
// slug needs to be a complete URL. | |
function custom_menu_link( $pages ) { | |
$pages[ 'custom_link' ] = array( | |
'slug' => 'http://yoursite.com/customlink/here', | |
'label' => __('Custom Link', 'wcvendors-pro' ), | |
'actions' => array() | |
); | |
return $pages; | |
} | |
add_filter( 'wcv_pro_dashboard_urls', 'custom_menu_link' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment