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

Idea: Scaffold commands that would auto-generate things #5

Open
alexstandiford opened this issue Apr 25, 2020 · 0 comments
Open

Idea: Scaffold commands that would auto-generate things #5

alexstandiford opened this issue Apr 25, 2020 · 0 comments

Comments

@alexstandiford
Copy link
Collaborator

It would be awesome if there was a way to auto-generate any of the WordPress "things" using a script.

Imagine if you could type:

wp boilerplate scaffold shortcode "shortcode-name"

and it would automatically...

  1. Create the registry class, if it doesn't exist
  2. Add it to the registry method in the base class, if it isn't set up
  3. Create a new class Shortcode_Name that extends Shortcode
  4. Add Shortcode_Name to the registry
  5. Output A new shortcode has been generated, and registered at path/to/file/Shortcode_Name.php

You could literally do this with all of the scaffold items, and make this super automated.

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

No branches or pull requests

1 participant