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

How can I make featured image a required field? #8713

Closed
bianqui149 opened this issue Aug 8, 2018 · 5 comments
Closed

How can I make featured image a required field? #8713

bianqui149 opened this issue Aug 8, 2018 · 5 comments
Labels
[Status] Needs More Info Follow-up required in order to be actionable. [Type] Help Request Help with setup, implementation, or "How do I?" questions.

Comments

@bianqui149
Copy link

Featured Image field Required
Hi, I have some time tried to implement some hooks to set the featured image like a field required, I notice that this works with the old editor but whit gutenberg a create some conflicts.
Any idea of how can I fixed.
Regards!

@designsimply designsimply changed the title Featured Image With Gutenberg How can I make featured image a required field? Aug 8, 2018
@designsimply designsimply added [Status] Needs More Info Follow-up required in order to be actionable. [Type] Help Request Help with setup, implementation, or "How do I?" questions. labels Aug 8, 2018
@designsimply
Copy link
Member

Are you able to provide a bit more detail or a code example to test? Specifically, can you talk more about the conflicts you mentioned?

@bianqui149
Copy link
Author

I tried to set a featured image like a required fields, some while ago I used this plugin https://wordpress.org/plugins/require-featured-image/.
But with Gutenberg I have problems.

@designsimply designsimply added Needs Testing Needs further testing to be confirmed. [Status] Needs More Info Follow-up required in order to be actionable. and removed [Status] Needs More Info Follow-up required in order to be actionable. labels Aug 8, 2018
@skorasaurus
Copy link
Member

This can be accomplished with #10649 although I don't know if that is the recommended way for designating fields to be required; also there doesn't appear to be documentation for it.

@designsimply designsimply removed the Needs Testing Needs further testing to be confirmed. label Jan 28, 2019
@designsimply
Copy link
Member

@bianqui149 were you able to accomplish your goal using the info @skorasaurus pointed to in #10649?

@designsimply designsimply added the [Status] Needs More Info Follow-up required in order to be actionable. label Jan 28, 2019
@designsimply
Copy link
Member

Closing since a note was provided that this can be accomplished with the post save locking feature added in #10649 and at least noted in the documentation at https://wordpress.org/gutenberg/handbook/designers-developers/developers/data/data-core-editor/#ispostsavinglocked

To get help with custom code or if you have further questions, technical help requests have their own section of the support forum at https://wordpress.org/support/forum/wp-advanced/ and you may also ask for technical support at https://wordpress.stackexchange.com/

We are working to prioritize new development for this repository and move help requests to the appropriate support forums. Thank you for your understanding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Needs More Info Follow-up required in order to be actionable. [Type] Help Request Help with setup, implementation, or "How do I?" questions.
Projects
None yet
Development

No branches or pull requests

3 participants