-
-
Save fervous/a62d24d1695de238c92243e672663674 to your computer and use it in GitHub Desktop.
WC Vendors Pro - Change "Settings" on Pro Dashboard to another name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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