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

roots/wp-cli-theme-activation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

WP-CLI command for theme activation and setting options

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages