/mpat-newpage-wizard

Primary LanguageJavaScriptOtherNOASSERTION

MPAT NewPage Wizard

Step by step creating MPAT pages.

This project is also an example how to create a WordPress plugin for MPAT.


Getting Started

Prerequisites

This plugins depends of the MPAT-Core plugin.

It uses the REST API v2 which is built-in since WordPress 4.7.

Installing

Using composer

    "repositories" : [
        ...
        {
            "type" : "vcs",
            "url" : "git@github.com:jeanphilipperuijs/mpat-newpage-wizard.git"
        },
        ...
    ],
    "require" : {
        ...
        "mpat/mpat-newpage-wizard": "dev-master",
        ...
    },

Using git

cd [wordpress]/plugins/

git clone https://github.com/jeanphilipperuijs/mpat-newpage-wizard.git

Usage

This plugin adds by default at the top of the page overview a new button next to Add New to named Wizard.

In General Settings you can choose to replace instead of adding. wizard configuration

This is does the same as the following:

To replace the 'add new' button with the 'wizard': update_option('mpatNewPageWizard', 'on'));

Deployment

Add additional notes about how to deploy this on a live system

Built With

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

See also the list of contributors who participated in this project.

License

This project is open source - see the LICENSE.md file for details

Acknowledgments

  • Hat tip to anyone who's code was used
  • Inspiration
  • etc

The following error message will appear when starting the wizard if the plugin is missing:

Missing the custom REST for Page Layouts http://[your-host]/wp-json/mpat/v1/layout. Have you installed "mpat-core-plugin" ?