Skip to content

Instantly share code, notes, and snippets.

@digitalchild
Created June 9, 2016 20:24
Show Gist options
  • Save digitalchild/ec60f419458c33a8261be2a5006ca78c to your computer and use it in GitHub Desktop.
Save digitalchild/ec60f419458c33a8261be2a5006ca78c to your computer and use it in GitHub Desktop.
Add external link to dashboard
<?php
// Add this to your themes functions.php
function new_dash_board_page( $pages ){
$pages[] = array( 'label' => 'New Link', 'slug' => 'http://mysomelink.com' );
return $pages;
}
add_filter( 'wcv_pro_dashboard_urls', 'new_page' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment