This repository provides the features of the WordPress plugin ProvenExpert. The repository is used as a basis for deploying the plugin to the WordPress repository. It is not intended to run as a plugin as it is, even if that is possible for development.
Add this in your wp-config.php for development:
define( 'WP_ENVIRONMENT_TYPE', 'local' );
define( 'WP_DEVELOPMENT_MODE', 'plugin' );
You need to install:
- composer
- npm
- wp-cli
After checkout go through the following steps:
- copy build/build.properties.dist to build/build.properties.
- modify the build/build.properties file - note the comments in the file.
- execute the command in build/:
ant init - after that the plugin can be activated in WordPress
- increase the version number in build/build.properties.
- execute the following command in build/:
ant build - after that you will finde in the release directory a zip file which could be used in WordPress to install it.
Translations of this plugin are managed by https://translate.wordpress.org. It is not necessary to generate our own language files, although this is possible and sometimes helpful to detect possible errors.
We recommend to use PoEdit to translate texts for this plugin.
Run in main directory:
wp i18n make-pot . languages/provenexpert.pot --exclude=blocks/awards/src/,blocks/bar/src/,blocks/circle/src/,blocks/landing/src/,blocks/seal/src/,blocks/proseal/src/,svn/
- Open .po-file of the language in PoEdit.
- Go to "Translate" > "Update from POT-file".
- After this the new entries are added to the language-file.
- Open .po-file of the language in PoEdit.
- Go to File > Save.
- Upload the generated .mo-file and the .po-file to the plugin-folder languages/
Run in main directory:
wp i18n make-json languages
OR use ant in build/-directory: ant json-translations
wp i18n make-php languages
composer install
vendor/bin/phpcs --standard=ruleset.xml .
vendor/bin/phpcbf --standard=ruleset.xml .
Hint: this check runs against the VIP-GO-platform which is not our target for this plugin. Many warnings can be ignored.
vendor/bin/phpcs --extensions=php --ignore=*/vendor/*,*/build/*,*/node_modules/*,*/blocks/*,*/svn/*,*/languages/* --standard=WordPress-VIP-Go .
vendor/bin/wp-documentor parse app --format=markdown --output=doc/hooks.md --prefix=provenexpert