Last active
April 26, 2017 00:02
-
-
Save fervous/c1ff2f2c4e5c2dd343ffd711ea14391c to your computer and use it in GitHub Desktop.
Change Pro add product button to lead to Free add product wp admin link
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 - add product button to free wp amdin/wc add product form */ | |
add_filter('wcv_dashboard_quick_links', 'rename_wcv_store_tabs'); | |
function rename_wcv_store_tabs( $quick_links ){ | |
if ( array_key_exists('product', $quick_links ) ) $quick_links[ 'product' ][ 'url' ] = '/wp-admin/post-new.php?post_type=product'; | |
return $quick_links; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment