Skip to content

seothemes/genesis-config-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Genesis Config Exporter

Automates the creation of onboarding config files for Genesis child themes.

Below is a list of configs that can be automatically generated:

  • Plugins - All active plugins. Deactivated plugins are skipped.
  • Content - All post meta and content. Can be limited by post type.
  • Images - Only images that are set as featured images are included.
  • Menus - All registered navigation menus and menu items.
  • Widgets - All active widgets. Excludes Inactive Widgets.

The config file is automatically generated and placed in the child theme config directory.

Requirements

Requirement Version
PHP 7.2.0
WordPress 5.2.3
Genesis 3.1.2
WP CLI 2.1.0

Installation

Download and install this plugin https://github.com/seothemes/genesis-config-exporter/archive/master.zip

You will also need WP CLI installed on your machine to use it. See installing WP-CLI.

Usage

From the command line, navigate to anywhere in your WordPress installation and run the following command:

wp genesis config export

When you see the following prompt, hit y and then return to continue:

Warning: This will overwrite your current child theme's onboarding config file. Proceed? [y/n]

Args

dry

Does not generate the file:

--dry=true

force

Disables the warning prompt:

--force=true

image_dir

Specifices the directory to store featured images:

--image_dir='/config/images/'

Extra

Debugging

A debugging class is conveniently provided to allow quick debugging in the browser. To enable, open the src/Debug.php file in your editor and change the DEBUG const from false to true. WP_DEBUG also needs to be set to true to enable debugging.

Admin Settings

Coming soon.

Contributing

Important: Please run composer dump --no-dev before committing changes.

About

Automates the creation of onboarding config files for Genesis child themes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages