Title: DCO Comment Attachment
Author: Denis Yanchevskiy
Published: <strong>6 de mayo de 2019</strong>
Last modified: 2 de octubre de 2022

---

Buscar plugins

![](https://ps.w.org/dco-comment-attachment/assets/banner-772x250.jpg?rev=2586642)

Este plugin **no se ha probado con las últimas 3 versiones mayores de WordPress**.
Puede que ya no tenga soporte ni lo mantenga nadie, o puede que tenga problemas 
de compatibilidad cuando se usa con las versiones más recientes de WordPress.

![](https://ps.w.org/dco-comment-attachment/assets/icon-256x256.png?rev=2082370)

# DCO Comment Attachment

 Por [Denis Yanchevskiy](https://profiles.wordpress.org/denisco/)

[Descargar](https://downloads.wordpress.org/plugin/dco-comment-attachment.2.4.0.zip)

 * [Detalles](https://es-ec.wordpress.org/plugins/dco-comment-attachment/#description)
 * [Valoraciones](https://es-ec.wordpress.org/plugins/dco-comment-attachment/#reviews)
 *  [Instalación](https://es-ec.wordpress.org/plugins/dco-comment-attachment/#installation)
 * [Desarrollo](https://es-ec.wordpress.org/plugins/dco-comment-attachment/#developers)

 [Soporte](https://wordpress.org/support/plugin/dco-comment-attachment/)

## Descripción

DCO Comment Attachment allows your visitors to attach images, videos, audios, documents
and other files with their comments. They will also be able to automatically embed
links from Youtube, Facebook, Twitter and other services in the comment text.

With plugin settings you can:

 * Limit the maximum file upload size.
 * Make an attachment required.
 * Specify whether the attachment will be embedded or displayed as a link.
 * Enable/Disable autoembed links (like Youtube, Facebook, Twitter, etc.) in the
   comment text.
 * Select an attachment image size from thumbnails available in your WordPress install.
 * Link a thumbnail to a full-size image with lightbox plugins support (see [FAQ](https://es-ec.wordpress.org/plugins/dco-comment-attachment/?output_format=md#faq)
   for details).
 * Open a full-size image in a new tab or link thumbnail to the attachment page.
 * Enable/Disable multiple upload.
 * Combine images to gallery.
 * Select an attachment image size for the images gallery.
 * Restrict attachment file types.
 * Decide who will be able to upload attachments: all users or only logged users.
 * Manually moderate comments with attachments.

You can also:

 * Add, replace or delete an attachment from a comment on the Edit Comment screen.
 * Attach an unlimited number of attachments to the comment in the admin panel.
 * Delete an attachment from a specific comment or bulk delete attachments from 
   comments on the Comments screen.
 * Display attachments attached to comments to the current post (or a specific post)
   with the `[dco_ca]` shortcode. You can also filter by type. See [FAQ](https://es-ec.wordpress.org/plugins/dco-comment-attachment/?output_format=md#faq)
   for details.

Attachments are uploaded to the WordPress Media Library and deleted along with the
comment (if this is set in the settings).

REST API is supported.

DCO Comment Attachment is also available on [GitHub](https://github.com/yadenis/DCO-Comment-Attachment).

## Capturas

 * [[
 * Examples of attachment types.
 * [[
 * A commenting form with an attachment field.
 * [[
 * List of comments in the admin panel.
 * [[
 * Screen for editing a comment in the admin panel.
 * [[
 * Plugin settings page.
 * [[
 * An example of a lightbox with the Simple Lightbox plugin.
 * [[
 * An example of a drag and drop support.
 * [[
 * An example of the new comment notification email.
 * [[
 * An example of REST API support.

## Instalación

 1. Upload `dco-comment-attachment` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## FAQ

### What lightbox plugins are supported?

DCO Comment Attachment tested with:
 * Simple Lightbox * Easy FancyBox * Responsive
Lightbox & Gallery * FooBox Image Lightbox * FancyBox for WordPress

Feel free to create [a new topic](https://wordpress.org/support/plugin/dco-comment-attachment/)
on support forum if you need integration with another plugin.

### How to use the [dco_ca] shortcode?

Without attributes specified, the `[dco_ca]` shortcode will display all attachments
attached to current post.

You can filter attachments using the `type` attribute. By default it is `all`. Also
supported: `image`, `video`, `audio` and `misc`.
 You can specify one value `[dco_ca
type="image"]` or multiple values, separated by commas `[dco_ca type="video,audio"]`.

You can also display attachments from the comments of another post using the `post_id`
attribute.
 For example, `[dco_ca post_id="45"]`, where `45` is the ID of the specific
post.

You can also combine these attributes. For example, `[dco_ca post_id="45" type="
image"]` will display all images attached to comments to the post with ID 45.

## Reseñas

![](https://secure.gravatar.com/avatar/6567f5a3b60dcde2c49f68b1f4252a7ccf964273f59825cb3794543a1d51ec7d?
s=60&d=retro&r=g)

### 󠀁[This is absolutely what I needed!](https://wordpress.org/support/topic/this-is-absolutely-what-i-needed/)󠁿

 [Vostok8](https://profiles.wordpress.org/vostok8/) 2 de marzo de 2025

Denis, thank you for this amazing plugin!With the help of this plugin, I converted
the functionality of comments into reviews with photos. Please do not abandon the
support and development of the plugin.I will be very glad if you check the code 
for compatibility with the current version of WordPress and release an update.Денис,
спасибо за плагин!

![](https://secure.gravatar.com/avatar/93905d413b0693d558594b541f883992316f580885a385607e8df3caae8e039a?
s=60&d=retro&r=g)

### 󠀁[works well, looks good](https://wordpress.org/support/topic/works-well-looks-good-6/)󠁿

 [katod](https://profiles.wordpress.org/katod/) 14 de agosto de 2023

Works well. I was able to limit file type and see the jpg in the admin comment approval
area and then image displayed nicely in the comments.

![](https://secure.gravatar.com/avatar/11d44dde2991b13dce4827d13803b8fbec7ed8aa6d5a954add8635315ca0e9df?
s=60&d=retro&r=g)

### 󠀁[nice plugin](https://wordpress.org/support/topic/nice-plugin-4907/)󠁿

 [ehsantk](https://profiles.wordpress.org/ehsantk/) 14 de abril de 2023

its a great plugin i have a suggest there is a bad thing about uploaded file by 
user is that its going go wordpress media location. it make hard to find and categorize
uploaded file by user for owner of site. if it save file on another location that
we could great

![](https://secure.gravatar.com/avatar/a3f119d7023f2647c0bc9d526c729fd49f432f05804dd6fe9228840b6f9d6ca0?
s=60&d=retro&r=g)

### 󠀁[Awesome plugin](https://wordpress.org/support/topic/awesome-plugin-6750/)󠁿

 [Igor](https://profiles.wordpress.org/igorpedro/) 26 de enero de 2023

Awesome plugin with many configuration options.

![](https://secure.gravatar.com/avatar/ad306da669870264de42d5360796b575dc1e148ef23d84c73180198060701569?
s=60&d=retro&r=g)

### 󠀁[Awesome plugin](https://wordpress.org/support/topic/awesome-plugin-6640/)󠁿

 [Huu Minh](https://profiles.wordpress.org/huu-minh/) 31 de octubre de 2022

This is an awesome plugin. I’ve been looking for something like this a long time.
I hope the author Denis will keep update this plugin and won’t abandon like others
after a while. Just wondering, for some reason I have to disable your plugin, all
the Youtube links and image attachements will be turned off too?

![](https://secure.gravatar.com/avatar/015ae887f7e65c7af2459539410f0baedee43336bb63ff6c0e19025d4850532a?
s=60&d=retro&r=g)

### 󠀁[Excelente plugin, lo he encontrado demasiado últil](https://wordpress.org/support/topic/excelente-plugin-lo-he-encontrado-demasiado-ultil/)󠁿

 [Samot80](https://profiles.wordpress.org/samot80/) 3 de junio de 2022

Muy útil el plugin, esperemos que no abandonen el proyecto. Salvo el detalle de 
los links de twitter y Facebook que no se incrustan, lo demás funciona perfecto.

 [ Leer todas las 10 reseñas ](https://wordpress.org/support/plugin/dco-comment-attachment/reviews/)

## Colaboradores y desarrolladores

«DCO Comment Attachment» es un software de código abierto. Las siguientes personas
han colaborado con este plugin.

Colaboradores

 *   [ Denis Yanchevskiy ](https://profiles.wordpress.org/denisco/)

«DCO Comment Attachment» ha sido traducido a 8 idiomas locales. Gracias a [los traductores](https://translate.wordpress.org/projects/wp-plugins/dco-comment-attachment/contributors)
por sus contribuciones.

[Traduce «DCO Comment Attachment» a tu idioma.](https://translate.wordpress.org/projects/wp-plugins/dco-comment-attachment)

### ¿Interesado en el desarrollo?

[Revisa el código](https://plugins.trac.wordpress.org/browser/dco-comment-attachment/),
echa un vistazo al [repositorio SVN](https://plugins.svn.wordpress.org/dco-comment-attachment/)
o suscríbete al [registro de desarrollo](https://plugins.trac.wordpress.org/log/dco-comment-attachment/)
por [RSS](https://plugins.trac.wordpress.org/log/dco-comment-attachment/?limit=100&mode=stop_on_copy&format=rss).

## Registro de cambios

#### 2.4.0

 * Added bulk delete attachments action on the Comments screen.
 * Added the `[dco_ca]` shortcode for display attachments attached to comments (
   see FAQ for details).
 * Fixed bug: now if there is no attachment, the empty array is not saved to the
   database.

#### 2.3.1

 * Fixed a bug with the accept attribute of the attachment upload field.
 * Added compatibility with Loco Translate plugin.

#### 2.3.0

 * Added allowed file types to the file input dialog box. (thank you [@pranciskus](https://profiles.wordpress.org/pranciskus/))
 * Added REST API support (thank you [@daohoangson](https://profiles.wordpress.org/daohoangson/))
 * Added `dco_ca_force_download_misc_attachments` filter for force download files
   instead of open.
 * Improved check/uncheck allowed file types on Settings page.
 * Fixed «Trying to get property ‘comment_ID’ of non-object» bug. (thank you [@pranciskus](https://profiles.wordpress.org/pranciskus/))

#### 2.2.0

 * Added drag and drop support for attachment input field.
 * Improved «Link thumbnail?» option. Link to a new tab and an attachment page (
   thank you [@nourijp](https://profiles.wordpress.org/nourijp/)) is now supported.
 * Fixed bug with «Manually moderate comments with attachments» option. (thank you
   [@thompro](https://profiles.wordpress.org/thompro/))
 * Removed «Attach to commented post?» option from the Settings page. You can use
   the `dco_ca_attach_to_post` filter instead.

#### 2.1.1

 * Added new filters for the attachment markup customization: `dco_ca_get_attachment_preview`
   and `dco_ca_get_attachment_preview_image`.

#### 2.1.0

 * Added links to attached attachments to the new comment notification email.
 * Added the feature to force moderation comments with attachments.
 * Added compatible with SVG Support plugin.

#### 2.0.0

 * Added the feature to upload multiple files.
 * Added support for some lightbox plugins (see FAQ for details).
 * Added additional markup to the form elements (thank you [@matthewmcvickar](https://profiles.wordpress.org/matthewmcvickar/))
 * Added error handling for JavaScript on the frontend (thank you [@mrbalkon](https://profiles.wordpress.org/mrbalkon/))
 * Improved Settings page
 * Filter `dco_ca_form_element_autoembed_links_notification` is deprecated. Use `
   dco_ca_form_element_autoembed_links` instead.
 * Type `autoembed-links-notification` for form_element function is deprecated. 
   Use `autoembed-links` instead.

#### 1.3.1

 * Fixed image embed bug when attachment url has get parameters (thank you [@deepreef](https://profiles.wordpress.org/deepreef/))

#### 1.3.0

 * Added the feature to link a thumbnail to a full-size image.
 * Added the feature for restrict uploading attachments only to logged users.
 * Added notification about automatically embedded links, when it’s enabled.
 * Fixed bug with incorrect display of attachment types that do not support embedding.(
   thank you [@nazzareno](https://profiles.wordpress.org/nazzareno/))
 * Removed jQuery dependency on the frontend.

#### 1.2.1

 * Fixed Quick Edit Comment function bug (thank you [@bbceg](https://profiles.wordpress.org/bbceg/))

#### 1.2.0

 * Added the feature for autoembed links in comment text. You can disable it in 
   Settings -> DCO Comment Attachment.
 * Introduced `dco_ca_disable_display_attachment` hook. Now you can display attachment
   in custom place with `add_filter('dco_ca_disable_display_attachment', '__return_true');`
   filter and `dco_ca()->display_attachment()` function.

#### 1.1.2

 * Fixed display of empty allowed types if the website administrator has forbidden
   the upload of all extensions of this type. (thank you [@nunofrsilva](https://profiles.wordpress.org/nunofrsilva/))

#### 1.1.1

 * Added filters for the attachment field customization

#### 1.1.0

 * Now you can select and deselect Allowed File Types by the type in one click.
 * Added `dco_ca_disable_attachment_field` hook for disable the upload attachment
   field.
 * Reduced the effect of mime types filtering. Now it applies only for comment attachment
   upload.
 * Added the feature to attach an attachment to a commented post.

#### 1.0.0

 * Initial Release

## Meta

 *  Version **2.4.0**
 *  Last updated **hace 4 años**
 *  Active installations **9.000+**
 *  WordPress version ** 4.6 o superior **
 *  Tested up to **6.0.11**
 *  PHP version ** 5.6 o superior **
 *  Languages
 * [Bulgarian](https://bg.wordpress.org/plugins/dco-comment-attachment/), [Chinese (China)](https://cn.wordpress.org/plugins/dco-comment-attachment/),
   [Dutch](https://nl.wordpress.org/plugins/dco-comment-attachment/), [English (US)](https://wordpress.org/plugins/dco-comment-attachment/),
   [Italian](https://it.wordpress.org/plugins/dco-comment-attachment/), [Japanese](https://ja.wordpress.org/plugins/dco-comment-attachment/),
   [Russian](https://ru.wordpress.org/plugins/dco-comment-attachment/), [Spanish (Chile)](https://cl.wordpress.org/plugins/dco-comment-attachment/)
   y [Spanish (Spain)](https://es.wordpress.org/plugins/dco-comment-attachment/).
 *  [Traducir a tu idioma](https://translate.wordpress.org/projects/wp-plugins/dco-comment-attachment)
 * Tags
 * [attachment](https://es-ec.wordpress.org/plugins/tags/attachment/)[comment](https://es-ec.wordpress.org/plugins/tags/comment/)
   [image](https://es-ec.wordpress.org/plugins/tags/image/)[video](https://es-ec.wordpress.org/plugins/tags/video/)
 *  [Vista avanzada](https://es-ec.wordpress.org/plugins/dco-comment-attachment/advanced/)

## Valoraciones

 4.9 out of 5 stars.

 *  [  9 5-star reviews     ](https://wordpress.org/support/plugin/dco-comment-attachment/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/dco-comment-attachment/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/dco-comment-attachment/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/dco-comment-attachment/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/dco-comment-attachment/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/dco-comment-attachment/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/dco-comment-attachment/reviews/)

## Colaboradores

 *   [ Denis Yanchevskiy ](https://profiles.wordpress.org/denisco/)

## Soporte

¿Tienes algo que decir? ¿Necesitas ayuda?

 [Ver el foro de soporte](https://wordpress.org/support/plugin/dco-comment-attachment/)

## Donar

¿Te gustaría apoyar el progreso de este plugin?

 [ Dona a este plugin ](https://www.donationalerts.com/r/denisco)