Skip to content

Instantly share code, notes, and snippets.

@bentasm1
Forked from digitalchild/functions.php
Last active December 1, 2017 01:23
Show Gist options
  • Save bentasm1/08ffa98f724067d2d2cfd423ce36fbb1 to your computer and use it in GitHub Desktop.
Save bentasm1/08ffa98f724067d2d2cfd423ce36fbb1 to your computer and use it in GitHub Desktop.
WC Vendors Pro - Add new tabs to Pro Dashboard Navigation
/* WC Vendors Pro - Add some new page links to the Pro Dashboard */
function new_dashboard_pages( $pages ){
$pages[] = array( 'label' => 'New Link', 'slug' => 'http://mysomelink.com' ); // Add stuff here
return $pages;
}
add_filter( 'wcv_pro_dashboard_urls', 'new_dashboard_pages' );
@chandra10207
Copy link

Nice!!
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment