Skip to content

Helper tools which are commonly used in WordPress development.

Notifications You must be signed in to change notification settings

ernilambar/devtools

Repository files navigation

ernilambar/devtools

Helper tools which are commonly used in WordPress development.

Quick links: Using | Installing

Using

This package implements the following commands:

wp dt home

Homepage settings.

wp dt home <mode>

OPTIONS

<mode>
	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 <mode>

OPTIONS

<mode>
	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 <menu-name> [--count=<number>] [--porcelain]

OPTIONS

<menu-name>
	A descriptive name for the menu.

[--count=<number>]
	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:

wp package install ernilambar/devtools:@stable

To install the latest development version of this package, use the following command instead:

wp package install ernilambar/devtools:dev-master

This README.md is generated dynamically from the project's codebase using wp scaffold package-readme (doc). To suggest changes, please submit a pull request against the corresponding part of the codebase.

About

Helper tools which are commonly used in WordPress development.

Topics

Resources

Stars

Watchers

Forks