Skip to content

Instantly share code, notes, and snippets.

@fervous
Forked from bentasm1/functions.php
Created September 3, 2016 03:40
Show Gist options
  • Save fervous/a62d24d1695de238c92243e672663674 to your computer and use it in GitHub Desktop.
Save fervous/a62d24d1695de238c92243e672663674 to your computer and use it in GitHub Desktop.
WC Vendors Pro - Change "Settings" on Pro Dashboard to another name
/* WC Vendors Pro - Change the Settings tab on the Pro Dashboard navigation to say "New Label" (or whatever) instead */
function custom_menu_link( $pages ) {
$pages[ 'settings' ] = array(
'slug' => 'settings',
'label' => __('New Label', '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