Title: DCO Comment Attachment
Author: Denis Yanchevskiy
Published: <strong>2019年5月6日</strong>
Last modified: 2022年10月2日

---

プラグインを検索

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

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

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

# DCO Comment Attachment

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

[ダウンロード](https://downloads.wordpress.org/plugin/dco-comment-attachment.2.4.0.zip)

 * [詳細](https://ja.wordpress.org/plugins/dco-comment-attachment/#description)
 * [レビュー](https://ja.wordpress.org/plugins/dco-comment-attachment/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/dco-comment-attachment/#installation)
 * [開発](https://ja.wordpress.org/plugins/dco-comment-attachment/#developers)

 [サポート](https://wordpress.org/support/plugin/dco-comment-attachment/)

## 説明

DCO Comment Attachment はあなたのサイトの訪問者がコメントに画像、動画、音声、文書
その他の形式のファイルを添付できるようにします。また、コメント本文中のYoutube、Facebook、
Twitterやその他のサービスのリンクを自動で埋め込みリンクにすることができます。

プラグイン設定で可能なこと:

 * アップロードするファイルの最大容量を制限できます。
 * ファイル添付をコメントの必須項目にできます。
 * 添付ファイルを埋め込み表示するか、リンクとして表示するかを指定できます。
 * Enable/Disable autoembed links (like Youtube, Facebook, Twitter, etc.) in the
   comment text.
 * 添付画像のサイズをメディア設定の利用可能なサムネイルサイズから選択できます。
 * Lightbox プラグインでフルサイズ表示するリンクを生成できます (詳細は[ FAQ ](https://ja.wordpress.org/plugins/dco-comment-attachment/?output_format=md#faq)
   を確認してください) 。
 * フルサイズの画像を新規タブで開くか、または添付ファイルページにリンクするサムネイル
   を表示することができます。
 * 複数アップロードの有効化/無効化。
 * 複数の画像をひとつのギャラリーに結合できます。
 * 写真ギャラリーで表示する添付画像の寸法を選択できます。
 * 添付ファイル形式の制限。
 * Decide who will be able to upload attachments: all users or only logged users.
 * 添付ファイルのあるコメントを手動承認に。

以下を行うこともできます:

 * コメント編集画面での添付ファイルの追加、置き換え、削除。
 * 管理画面ではコメントに添付ファイルをいくつでも添付できます。
 * 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://ja.wordpress.org/plugins/dco-comment-attachment/?output_format=md#faq)
   for details.

添付ファイルはメディアライブラリにアップロードされ、(設定画面で設定していれば) コメント
の削除と同時に削除されます。

REST API に対応しています。

DCO Comment Attachment は [GitHub](https://github.com/yadenis/DCO-Comment-Attachment)
でも入手できます。

## スクリーンショット

[⌊添付ファイル形式。⌉⌊添付ファイル形式。⌉[

添付ファイル形式。

[⌊添付ファイルフィールドのあるコメントフォーム。⌉⌊添付ファイルフィールドのあるコメント
フォーム。⌉[

添付ファイルフィールドのあるコメントフォーム。

[⌊管理画面のコメントリストの表示。⌉⌊管理画面のコメントリストの表示。⌉[

管理画面のコメントリストの表示。

[⌊管理パネルでコメントを編集するための画面。⌉⌊管理パネルでコメントを編集するため
の画面。⌉[

管理パネルでコメントを編集するための画面。

[⌊プラグイン設定画面。⌉⌊プラグイン設定画面。⌉[

プラグイン設定画面。

[⌊Simple Lightbox プラグインで表示する例。⌉⌊Simple Lightbox プラグインで表示する
例。⌉[

Simple Lightbox プラグインで表示する例。

[⌊An example of a drag and drop support.⌉⌊An example of a drag and drop support.⌉[

An example of a drag and drop support.

[⌊コメント通知メールの例。⌉⌊コメント通知メールの例。⌉[

コメント通知メールの例。

[⌊An example of REST API support.⌉⌊An example of REST API support.⌉[

An example of REST API support.

## インストール

 1. `dco-comment-attachment` フォルダーを `/wp-content/plugins/` ディレクトリにアップ
    ロード
 2. WordPress の「プラグイン」メニューからプラグインを有効化してください

## FAQ

### どんな Lightbox プラグインをサポートしていますか?

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

もし別のプラグインとの連携が必要でしたら、お気軽に[新しいトピック](https://wordpress.org/support/plugin/dco-comment-attachment/)
をサポートフォーラムに作成してください。

### 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.

## 評価

![](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/) 2025年3月2日

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/) 2023年8月14日

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/) 2023年4月14日

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/) 2023年1月26日

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/) 2022年10月31日

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/) 2022年6月3日

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.

 [ 10件のレビューをすべて表示 ](https://wordpress.org/support/plugin/dco-comment-attachment/reviews/)

## 貢献者と開発者

DCO Comment Attachment はオープンソースソフトウェアです。以下の人々がこのプラグイン
に貢献しています。

貢献者

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

“DCO Comment Attachment” は8ロケールに翻訳されています。 [翻訳者](https://translate.wordpress.org/projects/wp-plugins/dco-comment-attachment/contributors)
のみなさん、翻訳へのご協力ありがとうございます。

[“DCO Comment Attachment” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/dco-comment-attachment)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/dco-comment-attachment/)
するか、[SVN リポジトリ](https://plugins.svn.wordpress.org/dco-comment-attachment/)
をチェックするか、[開発ログ](https://plugins.trac.wordpress.org/log/dco-comment-attachment/)
を [RSS](https://plugins.trac.wordpress.org/log/dco-comment-attachment/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 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.
 * Loco Translate プラグインとの互換性を追加。

#### 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

 * 添付ファイル入力フィールドにドラッグ & ドロップのサポートを追加。
 * 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

 * コメント通知メールに添付されたファイルへのリンクを追加。
 * 添付ファイルあるコメントの承認を強制する機能の追加。
 * SVG サポートプラグインとの互換性を追加。

#### 2.0.0

 * 複数ファイルのアップロード機能を追加。
 * いくつかの Lightbox プラグインをサポート (詳細は FAQ を確認してください) 。
 * 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/))
 * 設定画面の改善
 * `dco_ca_form_element_autoembed_links_notification` フィルタは非推奨になりました。
   代わりに `dco_ca_form_element_autoembed_links` を使用してください。
 * フォーム要素関数のための `autoembed-links-notification` タイプは非推奨になりま
   した。代わりに `autoembed-links` を使用してくだい。

#### 1.3.1

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

#### 1.3.0

 * サムネールをフルサイズの画像にリンクする機能を追加しました。
 * ファイルを添付できるユーザーをログインユーザーのみに限定する機能を追加しました。
 * 自動埋め込みリンクが有効な場合、それについての注意を追加しました。
 * Fixed bug with incorrect display of attachment types that do not support embedding.(
   thank you [@nazzareno](https://profiles.wordpress.org/nazzareno/))
 * フロントエンドの jQuery への依存を削除しました。

#### 1.2.1

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

#### 1.2.0

 * コメント文中に自動埋め込みリンクを作成する機能の追加。設定-> 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

 * 添付ファイルフィールドのカスタマイズ用のフィルターを追加

#### 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.
 * MIMEタイプのフィルタリングの影響を軽減しました。現在、コメントの添付ファイルの
   アップロードのみに適用されます。
 * コメントされた投稿にファイルを添付する機能の追加。

#### 1.0.0

 * 最初のリリース

## メタ

 *  バージョン **2.4.0**
 *  最終更新日 **4年前**
 *  有効インストール数 **5,000+**
 *  WordPress バージョン ** 4.6またはそれ以降 **
 *  検証済み最新バージョン: **6.0.18**
 *  PHP バージョン ** 5.6またはそれ以降 **
 *  言語
 * [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/)、
   [Spanish (Spain)](https://es.wordpress.org/plugins/dco-comment-attachment/).
 *  [プラグインを翻訳](https://translate.wordpress.org/projects/wp-plugins/dco-comment-attachment)
 * タグ
 * [attachment](https://ja.wordpress.org/plugins/tags/attachment/)[comment](https://ja.wordpress.org/plugins/tags/comment/)
   [image](https://ja.wordpress.org/plugins/tags/image/)[video](https://ja.wordpress.org/plugins/tags/video/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/dco-comment-attachment/advanced/)

## 評価

 5つ星中4.9つ星

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

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

[すべてのレビューを見る](https://wordpress.org/support/plugin/dco-comment-attachment/reviews/)

## 貢献者

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

## サポート

過去2ヶ月以内に解決した問題:

     0 / 1

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/dco-comment-attachment/)

## 寄付

このプラグインが今後も改善できるよう応援しませんか ?

 [ このプラグインに寄付 ](https://www.donationalerts.com/r/denisco)