Skip to content

Instantly share code, notes, and snippets.

@fervous
Last active February 10, 2017 00:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fervous/4e88497ecb7f04d02c2a70707a2d2270 to your computer and use it in GitHub Desktop.
Save fervous/4e88497ecb7f04d02c2a70707a2d2270 to your computer and use it in GitHub Desktop.
WC Vendors Pro : Rename Quicklinks in Pro Dashboard
/* 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