Attachment Taxonomies source code
By Felix Arntz, on WordPress.org since 2016. 1,000+ active installs.
The plugin adds two taxonomies to the WordPress media library which are then available to categorize and tag your attachments. Below is its source code for every one of its 7 releases, what changed in the latest one, and how often it ships.
What changed in 1.2.2
Released Aug 15, 2026, 2 months after 1.2.1- Enhanced: Update dependencies to latest versions, modernize repository setup, use PNPM for JS management.
9 files changed since 1.2.1: 6 modified, 3 added, 0 removed.
- attachment-taxonomies.php modified, +83 bytes
- build/index.asset.php modified, same size
- build/index.js modified, -7 bytes
- inc/Attachment_Taxonomies_Admin.php modified, +69 bytes
- inc/Attachment_Taxonomy_Shortcode.php modified, +285 bytes
- readme.txt modified, +64 bytes
- AGENTS.md added
- pnpm-lock.yaml added
- pnpm-workspace.yaml added
Release history
7 releases since August 2016- 1.2.2 Aug 15, 2026 Enhanced: Update dependencies to latest versions, modernize repository setup, use PNPM for JS management.
- 1.2.1 May 17, 2026 Fixed: Uploading a new image via the Image block no longer causes a console error when opening the media library afterwards. Props lucymtc.
- 1.2.0 Oct 15, 2023 Added: Add support for setting attachment terms via the REST API wp/v2/media endpoint.
- 1.1.1 Aug 18, 2017 Enhanced: The plugin’s attachment taxonomies now use dedicated capabilities that map to core capabilities
- 1.1.0 Jul 27, 2017 Added: There is now a settings field for the default attachment category. For other attachment taxonomies they can easily be added by passing a has_default argument of true when registering the taxonomy.