https://github.com/threadi/auto-category-for-posts
Provides a Wordpress-Plugin which sets the default category on posts before saving them.
https://github.com/threadi/auto-category-for-posts
wordpress wordpress-plugin
Last synced: 5 months ago
JSON representation
Provides a Wordpress-Plugin which sets the default category on posts before saving them.
- Host: GitHub
- URL: https://github.com/threadi/auto-category-for-posts
- Owner: threadi
- Created: 2022-02-04T16:14:25.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-04-05T12:21:03.000Z (about 1 year ago)
- Last Synced: 2025-04-05T13:23:24.010Z (about 1 year ago)
- Topics: wordpress, wordpress-plugin
- Language: PHP
- Homepage: https://wordpress.org/plugins/auto-category-for-posts/
- Size: 40 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
Awesome Lists containing this project
README
# Auto category for posts
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.
## Usage
Nothing to do after checkout this repository.
## Release
1. increase the version number in _build/build.properties_.
2. execute the following command in _build/_: `ant build`
3. after that you will finde in the release directory a zip file which could be used in WordPress to install it.
## Translations
I recommend to use [PoEdit](https://poedit.net/) to translate texts for this plugin.
### generate pot-file
Run in main directory:
`wp i18n make-pot . languages/auto-category-for-posts.pot --exclude=svn`
### update translation-file
1. Open .po-file of the language in PoEdit.
2. Go to "Translate" > "Update from POT-file".
3. After this the new entries are added to the language-file.
### export translation-file
1. Open .po-file of the language in PoEdit.
2. Go to File > Save.
3. Upload the generated .mo-file and the .po-file to the plugin-folder languages/
### generate json-translation-files
Run in main directory:
`wp i18n make-json languages`
OR use ant in build/-directory: `ant json-translations`
## Check for WordPress Coding Standards
### Initialize
`composer install`
### Run
`vendor/bin/phpcs --extensions=php --ignore=*/vendor/*,*/doc/*,*/svn/*,*/node_modules/* --standard=ruleset.xml .`
### Repair
`vendor/bin/phpcbf --extensions=php --ignore=*/vendor/*,*/doc/*,*/svn/*,*/node_modules/* --standard=ruleset.xml .`
## Check for WordPress VIP Coding Standards
Hint: this check runs against the VIP-GO-platform which is not our target for this plugin. Many warnings can be ignored.
### Run
`vendor/bin/phpcs --extensions=php --ignore=*/vendor/*,*/doc/*,*/svn/*,*/node_modules/* --standard=WordPress-VIP-Go .`