custom user role wordpress – grant guest access to edit.php without insert/update/delete

After you’ve created the new role, you need to add the capability to it using add_cap. Check here for more info: https://codex.wordpress.org/Function_Reference/add_cap I think that for your particular case, you could replicate an Author but then remove certain capabilities using remove_cap https://codex.wordpress.org/Function_Reference/remove_cap

Tried to create a user role that can only edit user information, but my test account cannot view the dashboard. What am I missing?

I cracked it! I went ahead and duplicated an existing role, and trimmed off all of the guff I didn’t think my sales role would need. In the end, I ended up with; assign_product_terms assign_shop_coupon_terms assign_shop_order_terms assign_shop_webhook_terms connections_view_public delete_others_products delete_others_shop_coupons delete_others_shop_orders delete_others_shop_webhooks delete_private_products delete_private_shop_coupons delete_private_shop_orders delete_private_shop_webhooks delete_product delete_product_terms delete_products delete_published_products delete_published_shop_coupons delete_published_shop_orders delete_published_shop_webhooks delete_shop_coupon delete_shop_coupon_terms … Read more

How to set add question capability for author role in wp pro quiz plugin

A much more efficient way that doesn’t require editing the source code: install and activate wpfront User role editor, go to all roles, edit the author role, scroll down to the ‘other capabilities’ section, check the following capabilities: wpProQuiz_show, wpProQuiz_add_quiz, wpProQuiz_edit_quiz Save. The authors on your site should now be able to add and edit … Read more

How to give remove role editing permission from user

This will remove the option to change user group except if this is the administrator. The Codex states: While checking against particular roles in place of a capability is supported in part, this practice is discouraged as it may produce unreliable results. For this reason, I check for activate_plugins capability that normally only Admins will … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)