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

Set proper capabilities for Courier Notice post type #71

Open
maxinacube opened this issue Dec 19, 2019 · 2 comments
Open

Set proper capabilities for Courier Notice post type #71

maxinacube opened this issue Dec 19, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@maxinacube
Copy link
Collaborator

Proper capabilities need to be set for the Courier Notice post type.

In order to make a Gutenberg block for Courier, we need the post type registration to set show_in_rest as TRUE.

@maxinacube
Copy link
Collaborator Author

maxinacube commented Dec 19, 2019

To go along with this, we need to see if we can limit Courier Notices to only use the Classic Editor

https://gist.github.com/uptimizt/b99ef36aabab1ff641414e593e73d040
For anybody arriving here via a web search, the filter name in WordPress 5.0 is use_block_editor_for_post_type instead of gutenberg_can_edit_post_type.
Everything here --WordPress/gutenberg#7595
add_filter( 'use_block_editor_for_post_type', '__return_false' );

@aaronware aaronware self-assigned this Dec 30, 2019
@aaronware aaronware added this to the 1.1 milestone Dec 30, 2019
@aaronware aaronware added the enhancement New feature or request label Dec 30, 2019
@aaronware
Copy link
Collaborator

I can take care of this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants