Created
October 10, 2015 06:20
-
-
Save digitalchild/4d2fc3582bd2bd0b515b to your computer and use it in GitHub Desktop.
Change the Add Product URL on Pro Vendor dashboard
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
<?php | |
// Change the "Add Product" button url to the back end. | |
add_filter('wcv_add_product_url', 'new_add_product_url'); | |
function new_add_product_url(){ | |
return admin_url('post-new.php?post_type=product'); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment