Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/barryceelen/wp-attachments-only/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Attachments Only
Sometimes you don’t need all the bells and whistles of the WordPress attachment media view. For instance when you'd want all media files related to a post to actually be attachments of that post. This plugin takes that to the extreme and replaces the default WordPress media uploader view with a simplified version: it only allows adding, removing and rearranging attachments to a post.
Gotchas:
The plugin in its current state is, due to my lack of experience with the subject matter, a bit of a hack and could use some improvement:
- Currently disables uploading attachments by dragging them onto the tinymce editor.
- As the default media viewer is replaced, any plugins extending that will not work.
- Ideally a future version would optionally allow all other default actions like inserting media and galleries, except when using unattached media files.
Look ma, no settings!
However, you can modify the post types it applies to, the media button label and the media view title via hooks, for example in your theme's functions.php file:
Add supported post types
Filter strings