A content editor in WordPress for the OpenWoo.App.
In order to make the OpenWoo.App Content Editor Plugin work, you will need to have a WordPress installation with at least the following installed (and activated):
On this WordPress installation you will have to enable pretty permalinks (Settings > Permalinks > Select any of the options that is not plain).
- Upload the
openwoo-app-content-editor
folder to the/wp-content/plugins/
directory. - Activate the OpenWoo.App Content Editor Plugin through the 'Plugins' menu in WordPress.
composer source git@github.com:OpenWebconcept/plugin-openwoo-app-content-editor.git
composer require acato/openwoo-app-content-editor
- Activate the OpenWoo.App Content Editor Plugin through the 'Plugins' menu in WordPress.
Please remember, we use the WordPress PHP Coding Standards for this plugin! (https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/) To check if your changes are compatible with these standards:
cd /wp-content/plugins/openwoo-app-content-editor
composer install
(this step is only needed once after installing the plugin)./vendor/bin/phpcs --standard=phpcs.xml.dist .
- See the output if you have made any errors.
- Errors marked with
[x]
can be fixed automatically by phpcbf, to do so run:./vendor/bin/phpcbf --standard=phpcs.xml.dist .
- Errors marked with
N.B. the composer install
command will also install a git hook, preventing you from committing code that isn't compatible with the coding standards.
Please remember, we use PHPStan to check for errors in the code. To check if your changes are compatible with PHPStan:
cd /wp-content/plugins/openwoo-app-content-editor
composer install
(this step is only needed once after installing the plugin)./vendor/bin/phpstan analyse
- See the output if you have made any errors.
wp i18n make-pot . languages/openwoo-app-content-editor.pot --exclude="node_modules/,vendor/,stubs/,wp-content/" --domain="openwoo-app-content-editor"
cd languages && wp i18n make-json openwoo-app-content-editor-nl_NL.po --no-purge
This plugin adds four custom post types to WordPress:
- OpenWoo - Pages
- N.B. A page with the slug 'home' will get specific fields for editing parts of the homepage.
- OpenWoo - FAQ
- OpenWoo - Lists
- OpenWoo - Categories
This plugin adds two custom menu's to the WordPress admin, that are used in the OpenWoo.App footer:
- OpenWoo - This website
- OpenWoo - Quick links
This plugin adds the following REST API GET-endpoints:
- to retrieve all pages:
/wp-json/owc/owace/v1/api/public/pages
- to retrieve a specific page by slug:
/wp-json/owc/owace/v1/api/public/pages/{slug}
- to retrieve all faqs:
/wp-json/owc/owace/v1/api/public/faqs
- to retrieve a specific faq by id:
/wp-json/owc/owace/v1/api/public/faqs/{id}
- to retrieve all menus:
/wp-json/owc/owace/v1/api/public/menu
- to retrieve a specific menu by slug:
/wp-json/owc/owace/v1/api/public/menu/{slug}
- to retrieve all categories:
/wp-json/owc/owace/v1/api/public/categories
This plugin is compatible with the following open source projects:
This plugin uses SVG icons that are supplied by the OpenGemeenten Iconenset. More information about the icons can be found here.