Skip to content

Make it possible to enable Gutenberg editor for custom post types#43

Merged
aprokopenko merged 2 commits intojustcoded:masterfrom
jimmitjoo:master
Jan 14, 2019
Merged

Make it possible to enable Gutenberg editor for custom post types#43
aprokopenko merged 2 commits intojustcoded:masterfrom
jimmitjoo:master

Conversation

@jimmitjoo
Copy link
Copy Markdown
Contributor

Since WordPress 5.0 is released I think it is good to add at least optional support for Gutenberg in custom post types.

@aprokopenko
Copy link
Copy Markdown
Collaborator

Thanks for contributing. Will check it as soon as I have some time.

@aprokopenko
Copy link
Copy Markdown
Collaborator

@jimmitjoo ,

Quick question:

Why you want to add special property, if it just add standard "editor" support key?
Futhermore it's not obvious that this property affects show_in_rest.

I suggest to add property for show in rest, and remove gutenberg property, because it duplicates support property key (and we have constant for that).
What I agree is to add one more constand like SUPPORT_GUTENBERG, which will be the same value as SUPPORT_EDITOR, but it will be clear that this post type have editor with gutenber.

Please let me know your thoughts and update code a bit.

@jimmitjoo
Copy link
Copy Markdown
Contributor Author

@aprokopenko I like your suggestion, changed it accordingly 👍

@aprokopenko aprokopenko merged commit 293db6a into justcoded:master Jan 14, 2019
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 this pull request may close these issues.

2 participants