Please publish a new plugin for to limit vendors in woocommerce.
Admin enter a value , for example 50.
Vendors can not publish much more 50 product in woocommerce.
You can see https://www.ads-software.com/plugins/bainternet-posts-creation-limits/
But it no Update anymore.
Also you can edit this codes for me. Really I need it very much. It no work for products.
Thank you so much ! Have a nice day ! I wait your reply …
add_action(“load-post-new.php”,”limit_user_by_post_count”);
function limit_user_by_post_count(){
$user = get_current_user_id();
if (!current_user_can( ‘manage_options’)) {
//not an admin – so impose the limit
$user_post_count = count_user_posts($user);
if($user_post_count>=10)
header(“Location: /wp-admin/edit.php”);
}
}
-
This reply was modified 8 years ago by
yasko.