This repository is the base for the plugin Auto category for posts. This provides the possibility to set a category on new posts before they are saved. It also allows to set the default category in the category-list.
Nothing to do after checkout this repository.
- 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.
I recommend to use PoEdit to translate texts for this plugin.
Run in main directory:
wp i18n make-pot . languages/auto-category-for-posts.pot --exclude=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
composer install
vendor/bin/phpcs --standard=WordPress file
vendor/bin/phpcbf --standard=WordPress file