-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Snippet: How to lock blocks and prevent your users from unlocking them #344
Comments
This snippet is ready for its first review. Here's the draft: https://docs.google.com/document/d/1ok6K0cvpCSMwkOgs_lFWC0xCTjyCgMPZaMuocF9C87o/edit?tab=t.0 |
A nice, conscise 360° on Block locking and how to control it. Made an editing suggestion and also suggested another link to shorted the UI paragraph, to keep it even more conscise :-) |
Perfect, thanks. This allowed me to trim the majority of that paragraph. |
Second review done. Ready to go! |
Pre-publishing checklist: (updated 1/29/2024)
Post-publishing checklist
|
The snippet has been published: https://developer.wordpress.org/news/snippets/how-to-lock-wordpress-blocks-and-prevent-unlocking/ Social Copy:
|
Discussed in #342
Originally posted by ndiego November 18, 2024
This snippet would provide a very brief overview of the Block Locking API and then show developers how to prevent unlocking in specific contexts:
Post types:
User permissions:
The snippet will also show how to disable access to the Code Editor, so users cannot manipulate the attributes directly.
The text was updated successfully, but these errors were encountered: