https://github.com/ernilambar/devtools
Helper tools which are commonly used in WordPress development.
https://github.com/ernilambar/devtools
wordpress wp-cli wp-cli-package
Last synced: 7 months ago
JSON representation
Helper tools which are commonly used in WordPress development.
- Host: GitHub
- URL: https://github.com/ernilambar/devtools
- Owner: ernilambar
- Created: 2016-08-10T08:05:38.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-02-25T15:59:28.000Z (almost 2 years ago)
- Last Synced: 2025-06-25T00:48:34.886Z (8 months ago)
- Topics: wordpress, wp-cli, wp-cli-package
- Language: PHP
- Homepage:
- Size: 62.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ernilambar/devtools
===================
Helper tools which are commonly used in WordPress development.
Quick links: [Using](#using) | [Installing](#installing)
## Using
This package implements the following commands:
- [wp dt home](#wp-dt-home)
- [wp dt open](#wp-dt-open)
- [wp dt social](#wp-dt-social)
### wp dt home
Homepage settings.
~~~
wp dt home
~~~
**OPTIONS**
Homepage mode.
---
options:
- page
- post
---
**EXAMPLES**
# Set homepage display to latest posts.
$ wp dt home post
Success: Homepage displays set to Latest Posts.
# Set homepage display to static page.
$ wp dt home page
Success: Homepage displays set to Static Page.
### wp dt open
Open site URLs.
~~~
wp dt open
~~~
**OPTIONS**
Mode.
---
options:
- admin
- front
- customizer
- editor
---
**EXAMPLES**
# Open admin.
$ wp dt open admin
# Open frontend.
$ wp dt open front
### wp dt social
Create a new social menu.
~~~
wp dt social [--count=] [--porcelain]
~~~
**OPTIONS**
A descriptive name for the menu.
[--count=]
How many social icons?
---
default: 5
---
[--porcelain]
Output just the new menu id.
**EXAMPLES**
# Create social menu.
$ wp dt social "My Social Menu"
Success: Created menu 202.
## Installing
Installing this package requires WP-CLI v2.0 or greater. Update to the latest stable release with `wp cli update`.
Once you've done so, you can install the latest stable version of this package with:
```bash
wp package install ernilambar/devtools:@stable
```
To install the latest development version of this package, use the following command instead:
```bash
wp package install ernilambar/devtools:dev-master
```
*This README.md is generated dynamically from the project's codebase using `wp scaffold package-readme` ([doc](https://github.com/wp-cli/scaffold-package-command#wp-scaffold-package-readme)). To suggest changes, please submit a pull request against the corresponding part of the codebase.*