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

feat: add generator for meta boxes #134

Merged
merged 2 commits into from
Nov 7, 2023
Merged

feat: add generator for meta boxes #134

merged 2 commits into from
Nov 7, 2023

Conversation

dustin-jw
Copy link
Contributor

Description

This works sets up a generator for registering meta boxes on different post types. It only covers a basic text input, leaving more advanced implementations up to developers.

Closes #133

To Validate

  1. Make sure all PR Checks have passed
  2. Pull down this branch
  3. Run npm start
  4. Run npm run generate:meta-box and answer the questions, at least enabling the meta box for default post posts
  5. Add or edit a post, confirming that the meta box shows up in the editor with the values you specified
  6. Enter some data in the field, and save your changes, confirming that no errors are thrown and that the value persists when you reload the page
  7. Add other meta boxes with different values for context/positioning/post types and confirm that they work as you would expect (more or less, context and priority seem more like suggestions than rules)

@dustin-jw dustin-jw marked this pull request as ready for review November 6, 2023 17:39
@dustin-jw dustin-jw force-pushed the feat--meta-boxes branch 2 times, most recently from 0ab365d to 3d96bc4 Compare November 7, 2023 18:02
Copy link

@robtarr robtarr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

buster-1-these_are_my_awards_mother

- scaffold directory for custom meta box declarations
- add script to generate meta box configs
@dustin-jw dustin-jw merged commit b33048c into main Nov 7, 2023
2 checks passed
@dustin-jw dustin-jw deleted the feat--meta-boxes branch November 7, 2023 18:06
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.

Add generator for meta boxes
2 participants