Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Latest commit

 

History

History
39 lines (24 loc) · 1.35 KB

README.md

File metadata and controls

39 lines (24 loc) · 1.35 KB

Build Status

Installation

The quick and dirty method is to drop theme-activation-command.php into your /mu-plugins/ directory.

For other methods, please refer to WP-CLI's Community Packages wiki.

Usage

Running the command without any options will activate Sage with all of the default options.

wp theme activation

  1. Activates Sage
  2. Creates page called Home and sets as static front page
  3. Creates a new menu called Primary Navigation and adds newly created home page to it

Options

[<theme>]

The theme name to activate. Default: 'sage'

[--show-on-front=<page-type>]

What to show on the front page. Options are: 'posts', 'page'. Default: 'page'

[--permalink-structure=<permalink-string>]

Permalink structure. Default: '/%postname%/'

[--skip-navigation]

Skips creating default Primary Navigation.

Examples

wp theme activation
wp theme activation --show-on-front=page --permalink-structure='/%year%/%postname%/' --skip-navigation