Created
July 25, 2016 18:01
-
-
Save bentasm1/e896bb7d39ae4d3a38736d41bb9cd862 to your computer and use it in GitHub Desktop.
WC Vendors Pro - Change "Settings" on Pro Dashboard to another name
This file contains hidden or 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