Step by step creating MPAT pages.
This project is also an example how to create a WordPress plugin for MPAT.
This plugins depends of the MPAT-Core plugin.
It uses the REST API v2 which is built-in since WordPress 4.7.
"repositories" : [
...
{
"type" : "vcs",
"url" : "git@github.com:jeanphilipperuijs/mpat-newpage-wizard.git"
},
...
],
"require" : {
...
"mpat/mpat-newpage-wizard": "dev-master",
...
},
cd [wordpress]/plugins/
git clone https://github.com/jeanphilipperuijs/mpat-newpage-wizard.git
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.
This is does the same as the following:
To replace the 'add new' button with the 'wizard':
update_option('mpatNewPageWizard', 'on'));
Add additional notes about how to deploy this on a live system
- node - NodeJS 8
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- Jean-Philippe Ruijs - Initial work - jeanphilipperuijs
See also the list of contributors who participated in this project.
This project is open source - see the LICENSE.md file for details
- 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" ?