https://github.com/threadi/media-attached-filter
Provides a Wordpress-plugin which filters for attached files.
https://github.com/threadi/media-attached-filter
Last synced: 5 months ago
JSON representation
Provides a Wordpress-plugin which filters for attached files.
- Host: GitHub
- URL: https://github.com/threadi/media-attached-filter
- Owner: threadi
- Created: 2024-05-01T13:36:19.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-10-04T14:42:49.000Z (9 months ago)
- Last Synced: 2025-10-04T16:24:41.805Z (9 months ago)
- Language: PHP
- Homepage: https://wordpress.org/plugins/media-attached-filter/
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
Awesome Lists containing this project
README
# Media Attached Filter
## About
This repository provides the features of the WordPress plugin _Media Attached Filter_. 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.
## Usage
After checkout go through the following steps:
1. copy _build/build.properties.dist_ to _build/build.properties_.
2. modify the build/build.properties file - note the comments in the file.
3. after that the plugin can be activated in WordPress
## 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/media-attached-filter.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/
## Check for WordPress Coding Standards
### Initialize
`composer install`
### Run
`vendor/bin/phpcs --standard=ruleset.xml .`
### Repair
`vendor/bin/phpcbf --standard=ruleset.xml .`
### Generate documentation
`vendor/bin/wp-documentor parse . --exclude=vendor --format=markdown --output=doc/hooks.md --prefix=media_attached_filter_`