Download the PHP package mehrshaddarzi/wp-cli-trait-command without Composer
On this page you can find all versions of the php package mehrshaddarzi/wp-cli-trait-command. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mehrshaddarzi/wp-cli-trait-command
More information about mehrshaddarzi/wp-cli-trait-command
Files in mehrshaddarzi/wp-cli-trait-command
Package wp-cli-trait-command
Short Description WP-CLI Trait Package Command.
License MIT
Homepage https://github.com/mehrshaddarzi/wp-cli-trait-command
Informations about the package wp-cli-trait-command
WP-CLI Trait Package Command
Generate plugin or php model files e.g. post-type or taxonomy for WP-Trait Package in Develop WordPress Plugin.
Installation
You can install this package with:
Installing this package requires WP-CLI v2 or greater. Update to the latest stable release with
wp cli update
.
Structure
Generate Plugin
Use This Command:
And fill Your Plugin information e.g. slug and namespace:
Make PHP Model
Create php model:
Notice: To execute the command to create a model or post-type, you must change the directory of your terminal address from the WordPress root to the plugin folder. for example first run
cd wp-content/plugins/my-plugin
command and then runwp trait make
Create Model With Class Name:
Create Model With Nested Namespace:
Create Model With Custom global Variable in Plugin:
Make WordPress Post Type
Make a new post-type in WordPress:
Create A new Post Type With City
slug:
After created You can change register_post_type
argument in main plugin files.
Create a new Post Type With Nested NameSpace:
Make WordPress Taxonomy
Make a new taxonomy in WordPress:
Create A new Taxonomy With Country
slug:
After create You can change register_taxonomy argument in main plugin files.
Create a new Taxonomy With Nested NameSpace and Custom name:
Add or Remove Package
List Of Trait Package
package | description |
---|---|
ide-helper | Create WP-Trait method helper for developer in IDE software e.g. PHPStorm |
cmb2 | Add CMB2 Framework to your plugin |
Author
- Mehrshad Darzi | PHP Full Stack and WordPress Expert
Contributing
We appreciate you taking the initiative to contribute to this project.
Contributing isn’t limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.
Reporting a bug
Think you’ve found a bug? We’d love for you to help us get it fixed. Before you create a new issue, you should search existing issues to see if there’s an existing resolution to it, or if it’s already been fixed in a newer version.
Creating a pull request
Want to contribute a new feature? Please first open a new issue to discuss whether the feature is a good fit for the project.
Once you've decided to commit the time to seeing your pull request through, please follow our guidelines for creating a pull request to make sure it's a pleasant experience:
- Create a feature branch for each contribution.
- Submit your pull request early for feedback.
- Follow PSR-2 Coding Standards.
All versions of wp-cli-trait-command with dependencies
wp-packagist/wp-cli-helper Version >=1.0.2
ext-json Version *