Skip to content

Prevent publish/update using new Gutenberg actions #27

@adamsilverstein

Description

@adamsilverstein

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' );

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions