Created
March 5, 2016 03:05
-
-
Save garvs/a533893e30cc5697497f to your computer and use it in GitHub Desktop.
Custom user capability to duplicate WooCommerce products
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
<?php | |
add_filter('woocommerce_duplicate_product_capability', 'my_woocommerce_duplicate_product_capability'); | |
function my_woocommerce_duplicate_product_capability($cap) { | |
return 'duplicate_products'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a support code for this post