Skip to content

Instantly share code, notes, and snippets.

@garvs
Created March 5, 2016 03:05
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 garvs/a533893e30cc5697497f to your computer and use it in GitHub Desktop.
Save garvs/a533893e30cc5697497f to your computer and use it in GitHub Desktop.
Custom user capability to duplicate WooCommerce products
<?php
add_filter('woocommerce_duplicate_product_capability', 'my_woocommerce_duplicate_product_capability');
function my_woocommerce_duplicate_product_capability($cap) {
return 'duplicate_products';
}
@garvs
Copy link
Author

garvs commented Mar 5, 2016

This is a support code for this post

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment