Skip to content

Instantly share code, notes, and snippets.

@digitalchild
Last active March 3, 2023 04:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save digitalchild/a6c4443a1bdf5a89db5b to your computer and use it in GitHub Desktop.
Save digitalchild/a6c4443a1bdf5a89db5b to your computer and use it in GitHub Desktop.
Add custom link to pro dashboard navigation
<?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