Last active
February 10, 2017 00:13
-
-
Save fervous/4e88497ecb7f04d02c2a70707a2d2270 to your computer and use it in GitHub Desktop.
WC Vendors Pro : Rename Quicklinks in Pro Dashboard
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 Rename Quick Links in Dashboard . Change the labels to your own title. */ | |
add_filter('wcv_dashboard_quick_links', 'rename_wcv_dashboard_quick_links'); | |
function rename_wcv_dashboard_quick_links( $quick_links ){ | |
if ( array_key_exists('product', $quick_links ) ) $quick_links[ 'product' ][ 'label' ] = 'NEW NAME HERE'; | |
if ( array_key_exists('shop_coupon', $quick_links ) )$quick_links[ 'shop_coupon' ][ 'label' ] = 'NEW NAME HERE'; | |
return $quick_links; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment