Skip to content

Instantly share code, notes, and snippets.

@bentasm1
Created July 25, 2016 18:01
Show Gist options
  • Save bentasm1/e896bb7d39ae4d3a38736d41bb9cd862 to your computer and use it in GitHub Desktop.
Save bentasm1/e896bb7d39ae4d3a38736d41bb9cd862 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