Not lock in the way it is normally thought of. You can take away user’s ‘edit_theme_options’ capability to prevent them from doing anything at all with widgets or theme options. You can do so by assigning a lesser role or defining a new role without the capability. There are plugins that make managing roles and capabilities fairly easy. It’s also possible to add or remove capabilities of specific users regardless of role. This is not advised though, as it can make user management difficult and confusing.
If one were so inclined, they could create a new widget by extending the original widget class and add in some sort of locking capability.
Can you please give me a link to those plugins?
There are plugins that make managing roles
There are several in search results:
https://ww.wp.xz.cn/plugins/search/roles+capabilities/
Pick a few that appear regularly maintained and well supported, with many installations. Try them out and see which you like best 🙂
These are for users managing , not widgets managing.
My problem is that the widgets are loosing their settings.
Is not that a user is editing a widget .
Example , if i close jetpack and open it again i am loosing all the positions settings.
If i edit a widget that is in the same position with other widgets , the other widgets visibility is changing.
Thank you anyway
OK, I see now. Clearly I misunderstood, my apologies. I couldn’t have imagined widgets changing themselves! I suggest you ask for assistance with the devs of the widgets. On the off chance these are jetpack widgets, go here:
https://ww.wp.xz.cn/support/plugin/jetpack/