-
-
Save JiveDig/00eaa78d0b44e7befde4 to your computer and use it in GitHub Desktop.
All Easy Digital Downloads shop vendors to delete products/downloads
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 | |
function change_author_capabilities() { | |
$role = get_role( 'shop_vendor' ) ; | |
$role->add_cap( 'delete_published_products' ); | |
} | |
add_action( 'admin_init', 'change_author_capabilities' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment