Skip to content
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

Prevent publish/update using new Gutenberg actions #27

Closed
adamsilverstein opened this issue Oct 26, 2018 · 0 comments · Fixed by #37
Closed

Prevent publish/update using new Gutenberg actions #27

adamsilverstein opened this issue Oct 26, 2018 · 0 comments · Fixed by #37
Assignees
Milestone

Comments

@adamsilverstein
Copy link

See WordPress/gutenberg#10649 - we can now directly control whether the user can publish/update a post.

wp.data.dispatch( 'core/editor' ).lockPostSaving( 'mylock' );

wp.data.dispatch( 'core/editor' ).unlockPostSaving( 'mylock' );

@jeffpaul jeffpaul added this to the 1.0.0 milestone Aug 10, 2020
@dkotter dkotter mentioned this issue Jan 7, 2021
6 tasks
@dkotter dkotter self-assigned this Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants