Skip to content

Instantly share code, notes, and snippets.

@bentasm1
Forked from digitalchild/functions.php
Created October 10, 2015 15:24
Show Gist options
  • Save bentasm1/de13ef8ab66cf983d3f6 to your computer and use it in GitHub Desktop.
Save bentasm1/de13ef8ab66cf983d3f6 to your computer and use it in GitHub Desktop.
Change the Add Product URL on Pro Vendor dashboard
<?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