Skip to content

Instantly share code, notes, and snippets.

@chandra10207
Forked from bentasm1/functions.php
Created December 1, 2017 01:23
Show Gist options
  • Save chandra10207/264be0c553235d6280052f99860e4574 to your computer and use it in GitHub Desktop.
Save chandra10207/264be0c553235d6280052f99860e4574 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' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment