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

Improve support for CPT and CTT #61

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

bredecl
Copy link
Contributor

@bredecl bredecl commented Mar 20, 2025

Hi
I made some improvements for the bones cli and content

  • Added support to ask yes or no and returns a string to be used directly in stubs
  • Better code for CPT, so now generates automatically the default name, plural, slug based on name
  • Added a function to avoid create a post_type name larger than 20 characters (as described here: https://developer.wordpress.org/reference/functions/register_post_type/ )
  • Added support to set showInRest and showUI directly supports in CPT
  • Added a default icon for the stub of CPT, so we avoid the empty space
  • fix to avoid loop the menu -> items when is empty
  • Added support to show an example on ask method
  • Added support to pre-fill the data on CTT
  • Allow multiple Post Type support to CTT
  • Added support to set showui by default on CTT
  • Added support to manage CPT trash event.

bredecl added 4 commits March 20, 2025 15:26
…ctly in stubs

- Better code for CPT, so now generates automatically the default name, plural, slug based on name
- Added a function to avoid create a post_type name larger than 20 characters (as described here: https://developer.wordpress.org/reference/functions/register_post_type/ )
- Added support to set showInRest and showUI directly supports in CPT
- Added a default icon for the stub of CPT, so we avoid the empty space
- Added support to pre-fill the data on CTT
- Allow multiple Post Type support to CTT
- Added support to set showui by default on CTT
@gfazioli
Copy link
Collaborator

@bredecl hey, thank you for the PR 🙏 - where is your previous PR about the database?

@bredecl
Copy link
Contributor Author

bredecl commented Mar 21, 2025

@gfazioli I deleted it, it wasn't working as I expected, but I will work it again in it.

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