Cocoon Media Management

چۈشەندۈرۈش

Cocoon Media Management connects your WordPress website with the user-friendly Cocoon Digital Asset Management (DAM) software. With this plugin, all the visuals you need will be directly available from your Cocoon online media bank in your WordPress platform.

Cocoon is the media bank for marketing and communication professionals. It’s smart marketing software with which you can easily store, manage, find, and share all sorts of content with everyone, wherever and whenever. Your valuable marketing assets centralized in the cloud for maximum efficiency and perfect grip on your brand identity.

Key Features

  • WordPress Media Library Integration – Access Cocoon media directly from WordPress Media Library modal
  • Gutenberg Block – Dedicated block for inserting Cocoon images in block editor
  • TAG Search – Search and filter media by tags (NEW in 2.0!)
  • Set Management – Browse media organized in sets
  • Bulk Upload – Upload multiple images to WordPress at once
  • Smart Caching – Fast loading with intelligent thumbnail caching
  • Multiple Image Sizes – Choose from original, web, or custom sizes
  • Secure – Modern security practices with nonce verification and input sanitization

Benefits

  • 24/7 access to all your visuals in WordPress
  • Save time: managing and finding content has never been so easy
  • Safely managing and using content in your media gallery
  • Convenience and speed: easily store and find all your visuals at one central place
  • Brand management: as administrator you will have full control over which media files are available

What’s New in 2.0.0?

This is a complete rewrite of the plugin with modern WordPress and PHP best practices:

  • ✅ PHP 8.0+ with strict types and modern OOP
  • ✅ WordPress 6.0+ compatibility
  • ✅ Removed all deprecated WordPress functions
  • ✅ Enhanced security (CSRF protection, input sanitization)
  • ✅ Native wp.media framework integration
  • ✅ TAG search functionality (using new 2024 Cocoon API)
  • ✅ Gutenberg block support
  • ✅ PSR-4 autoloading
  • ✅ Comprehensive error handling

External Service

This plugin sends/requests media from the Cocoon web service at https://<your-subdomain>.use-cocoon.nl/webservice/wsdl.

Data sent to Cocoon:
* Authentication credentials (subdomain, username, hashed request ID)
* Request IDs for API calls

Data received from Cocoon:
* Media files metadata (titles, dimensions, file sizes)
* Thumbnail images
* Sets and tags information

No personal user data (emails, names, etc.) is sent to Cocoon. Only your configured API credentials are used for authentication.

For more information about Cocoon’s services and privacy policy:
* Cocoon Website
* Cocoon Privacy Policy
* Cocoon Terms of Service

Note: You need an active Cocoon subscription to use this plugin. Contact Cocoon to get your API credentials.

Additional Info

Development:
* GitHub: [Coming soon]
* Issues: https://wordpress.org/support/plugin/cocoon-media-management/

Credits:
* Developed by Cocoon Software Tech
* Maintained by Cocoon Team

Support:
* Plugin support: https://wordpress.org/support/plugin/cocoon-media-management/
* Cocoon support: support@use-cocoon.nl
* Phone: +31 (0)23 554 67 55

More Information:
* Website: https://use-cocoon.com/
* Documentation: https://use-cocoon.com/product/wordpress_plugin
* Request Demo: https://use-cocoon.com/request-demo/

ئېكران كەسمىسى

بۆلەك

بۇ قىستۇرما 1 بۆلەك تەمىنلەيدۇ.

  • Cocoon Image

ئورنىتىش

Minimum Requirements

  • WordPress 6.0 or higher
  • PHP 8.0 or higher
  • PHP SOAP extension enabled
  • MySQL 5.7+ or MariaDB 10.2+

Installation Steps

  1. Upload the plugin files to /wp-content/plugins/cocoon-media-management/, or install the plugin through the WordPress plugins screen directly
  2. Activate the plugin through the ›Plugins‹ screen in WordPress
  3. Contact Cocoon (support@use-cocoon.nl) to get your API credentials
  4. Go to Cocoon Settings and enter your credentials:
    • Subdomain (without .use-cocoon.nl)
    • Username
    • Secret Key
  5. Click «Save Settings» and verify the connection status

Upgrading from 1.5.7

Your settings will be migrated automatically. No manual intervention needed.

FAQ

Do I need a Cocoon account to use this plugin?

Yes, you need an active Cocoon subscription. Cocoon is a paid Digital Asset Management service. You can request a free demo at use-cocoon.com.

How do I get API credentials?

Contact Cocoon support:
* Email: support@use-cocoon.nl
* Phone: +31 (0)23 554 67 55
They will provide you with your subdomain, username, and secret key.

Is the plugin compatible with Gutenberg?

Yes! Version 2.0 includes a dedicated Gutenberg block for inserting Cocoon images.

Does it work with page builders like Elementor/Divi?

Yes, the plugin integrates with WordPress Media Library, so it works with all page builders that use the standard media modal.

Can I search media by tags?

Yes! Version 2.0 adds TAG search functionality using the new Cocoon API (2024).

Are images uploaded to WordPress or linked from Cocoon?

Images are copied to your WordPress Media Library when you insert them, ensuring they remain available even if removed from Cocoon.

What if I don’t have PHP SOAP extension?

Contact your hosting provider to enable the PHP SOAP extension. Most modern hosting providers have it available in their control panel (cPanel, Plesk, etc.).

Where are thumbnails cached?

Thumbnails are cached in /wp-content/plugins/cocoon-media-management/cache/ with configurable expiry time (default: 72 hours).

Is it compatible with WordPress Multisite?

Yes, each site can have its own Cocoon credentials.

باھالاشلار

بۇ قىستۇرمىغا تېخى باھا يېزىلمىدى.

تۆھپىكار ۋە ئىجادكار

«Cocoon Media Management» كودى ئوچۇق يۇمشاق دېتال. تۆۋەندىكى كىشىلەر بۇ قىستۇرمىغا تۆھپە قوشقان.

تۆھپىكار

«Cocoon Media Management» نى تىلىڭىزغا تەرجىمە قىلىڭ

ئىجادىيەتكە قىزىقامسىز؟

كودقا كۆز يۈگۈرتۈپ، SVN خەزىنە تەكشۈرۈپ ياكى RSSئارقىلىق ئىجادىيەت خاتىرىسىگە مۇشتەرى بولغىلى بولىدۇ.

ئۆزگىرىش خاتىرىسى

2.0.1 – 2026-06-21

Maintenance & Compliance Update (WordPress.org Plugin Review)

  • Removed the «Update URI» plugin header (not required for plugins hosted on WordPress.org).
  • Cache directory is now created inside the WordPress uploads directory instead of the plugin folder, so no data is stored in the plugin directory (plugin folders are wiped on update and are publicly accessible).
  • Settings registered via register_setting() now use strict positive-integer sanitization with range validation (items per page and cache duration), so negative values can no longer be stored.
  • All request input ($_POST / $_GET / $_REQUEST) is now unslashed with wp_unslash() before sanitization; nonce values are sanitized with sanitize_text_field( wp_unslash() ) before verification.

2.0.0 – 2025-01-18

Major Update – Complete Rewrite

New Features:
* TAG search functionality (new 2024 Cocoon API)
* Gutenberg block for Cocoon images
* WordPress Media Library integration (replaced deprecated media tab)
* Bulk upload from Cocoon Library page
* Tag autocomplete in search
* Modern admin UI

Security Improvements:
* CSRF protection with nonce verification on all forms/AJAX
* Input sanitization on all user inputs
* Output escaping on all outputs
* Capability checks (upload_files permission required)
* MIME type validation

Technical Improvements:
* PHP 8.0+ with strict types and type declarations
* PSR-4 autoloading
* Namespaced classes (Cocoon\MediaManagement)
* Modern error handling with custom exceptions
* Comprehensive logging (WP_DEBUG mode)
* wp.media framework integration
* REST API ready architecture

Bug Fixes:
* Fixed deprecated media_upload_tabs usage
* Fixed deprecated wp_iframe usage
* Fixed security vulnerabilities
* Fixed PHP 8+ compatibility issues
* Fixed memory leaks in large media sets
* Fixed cache permission issues

Removed:
* Deprecated WordPress functions
* Old media tab implementation
* Global functions (replaced with classes)

Requirements Update:
* Minimum PHP: 7.4 8.0
* Minimum WordPress: 3.3 6.0
* Tested up to WordPress 7.1

1.5.7 – 2021-XX-XX

  • Fix small bugs

1.5.6 – 2019-XX-XX

  • Composer support

1.5.5 – 2019-XX-XX

  • Search autocomplete tags
  • Back from search result
  • Set items per page
  • Fix small bugs

1.5.0 – 2019-XX-XX

  • Add search by Tag
  • Upload from DashboardMediaCocoon Library

1.0.0 – 2018-XX-XX

  • Initial public release