wordpress - Woocommerce - Shop Manager user delete capability -


apparently administrator can delete users. shop manager can edit users (their info , password). i'd shop manager able delete users administrators. shop manager can't delete users created.

any suggestions?

see add_cap function on how add capability role. here list of available capabilities.

another approach , albeit easy 1 install role editor plugin, eg: https://wordpress.org/plugins/user-role-editor/ , edit 'shop manager' role , assign capabilities required.


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -