Skip to content

Instantly share code, notes, and snippets.

@fervous
Last active August 28, 2017 02:46
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/0ed42f7321c8c1c9ee324b6a8a20288b to your computer and use it in GitHub Desktop.
Save fervous/0ed42f7321c8c1c9ee324b6a8a20288b to your computer and use it in GitHub Desktop.
change add product url quicklink wc vendors pro dashboard
/* WC Vendors Pro - change add product quicklink */
add_filter('wcv_dashboard_quick_links', 'wcv_dashboard_quick_links_product_change');
function wcv_dashboard_quick_links_product_change( $quick_links ){
if ( array_key_exists('product', $quick_links ) ) $quick_links[ 'product' ][ 'url' ] = '/your-url-here/';
return $quick_links;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment