Title: HameThread
Author: Hametuha INC.
Published: <strong>2026年7月3日</strong>
Last modified: 2026年7月3日

---

プラグインを検索

![](https://ps.w.org/hamethread/assets/banner-772x250.jpg?rev=3595290)

![](https://ps.w.org/hamethread/assets/icon.svg?rev=3595290)

# HameThread

 作者: [Hametuha INC.](https://profiles.wordpress.org/hametuha/)

[ダウンロード](https://downloads.wordpress.org/plugin/hamethread.2.1.3.zip)

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

 [サポート](https://wordpress.org/support/plugin/hamethread/)

## 説明

HameThreadは、大掛かりな設定なしにWordPressをスレッド形式の**Q&Aフォーラム/サポート
デスク**に変えます。各トピックは`thread`投稿として作成され、返信は通常のWordPress
コメントとして扱われるため、モデレーション、権限グループ、REST APIについてすでに
ご存知の知識がそのまま活用できます。

一般的なフォーラムにはない強みがあります:

 * **WooCommerce商品サポート** — 商品ページに「サポートを受ける」ボタンを表示し、
   購入者からの質問を_マイアカウント_内でスレッドとして収集します。
 * **非公開スレッド** — 投稿者、招待されたユーザー、編集者のみが読めるスレッドを
   開けます。有料サポートや機密性の高いサポートに最適です。
 * **ベストアンサー** — 質問を解決した返信をマークし、スレッド全体を_解決済み_として
   フラグ付けします。
 * **ブロックファースト** — 任意のページに**スレッドボタン**ブロックを配置するだけ
   で、訪問者がスレッドを開始できます。テンプレート編集もコードも不要です。

#### 機能

 * `topic`タクソノミーを持つ`thread`投稿タイプ
 * AJAX/REST投稿によるコメントベースの返信(ページ全体のリロード不要)
 * ベストアンサー&解決済み/未解決ステータス
 * 権限チェック付きの非公開スレッド
 * 一定期間動きがないスレッドの自動クローズ
 * コメントへの評価機能
 * スレッド購読者へのメール通知
 * SEO向けのJSON-LD(`QAPage`)構造化データ
 * WooCommerceの_マイアカウント_サポートページと商品ごとのサポートボタン
 * 任意の公開投稿タイプでコメントスレッドを有効化可能
 * **設定  ディスカッション**の管理画面設定(一般的な調整はコード不要)

#### カスタマイズ

一般的な設定は**設定  ディスカッション**から行えます:

 * スレッドの説明
 * ユーザーが非公開スレッドを開始できるようにする
 * HameThread形式のコメントスレッドを有効にする投稿タイプ

その他の項目もすべてフィルターで変更可能です。下記の**開発者向け情報**をご覧くだ
さい。

### 開発者向け情報

返信は標準のWordPressコメント、スレッドは標準の投稿タイプなので、コアのフックがそのまま
使えます。さらにHameThreadは多くのフィルター/アクションを公開しています。特に便利
なものは以下の通りです:

 Hook
 Type Purpose

 `hamethread_before_thread_form` / `hamethread_after_thread_form`
 action Add markup/
fields to the thread form

 `hamethread_new_thread_post_params`
 filter Register extra REST parameters for 
new threads

 `hamethread_new_thread_post_arg`
 filter Modify the post array before a thread 
is inserted

 `hamethread_new_thread_validation`
 filter Add validation errors (`WP_Error`)

 `hamethread_new_thread_inserted`
 action React after a thread is created

 `hamethread_before_comment_form` / `hamethread_after_comment_form`
 action Add 
markup/fields to the comment form

 `hamethread_new_comment_params`
 filter Modify comment data before insert

 `hamethread_default_subscribers` / `hamethread_subscribers`
 filter Control who
is notified

 `hamethread_user_can_start_private_thread`
 filter Allow private threads

 `hamethread_user_can_comment` / `hamethread_user_can_post`
 filter Capability checks

 `hamethread_dynamic_comment_post_types`
 filter Post types that get comment threads

 `hamethread_post_setting` / `hamethread_post_type` / `hamethread_taxonomy`
 filter
Customize the post type & taxonomy

 `hamethread_template`
 filter Override template parts

**例 — スレッドフォームにフィールドを追加して保存する:**

    ```
    // 1. Render the field.
    add_action( 'hamethread_after_thread_form', function ( $args, $default ) {
        if ( $args['post'] ) {
            return; // Only on new threads.
        }
        echo ' Notify staff';
    }, 10, 2 );

    // 2. Register the REST parameter.
    add_filter( 'hamethread_new_thread_post_params', function ( $params ) {
        $params['notify_staff'] = [ 'type' => 'integer', 'default' => 0 ];
        return $params;
    } );

    // 3. React after the thread is created.
    add_action( 'hamethread_new_thread_inserted', function ( $post_id, $request ) {
        if ( $request->get_param( 'notify_staff' ) ) {
            // notify…
        }
    }, 10, 2 );
    ```

**例 — `post`投稿タイプでコメントスレッドを有効にする:**

    ```
    add_filter( 'hamethread_dynamic_comment_post_types', function ( $post_types ) {
        $post_types[] = 'post';
        return $post_types;
    } );
    ```

フックの完全な一覧はソースコードにあります。`app/`ディレクトリと[GitHubリポジトリ](https://github.com/hametuha/hamethread)
をご覧ください。

## ブロック

このプラグインは1個のブロックを提供します。

 *   Thread Button Display a button that lets users start a new thread or support
   topic.

## インストール

 1. プラグインを`wp-content/plugins/hamethread`にアップロード(またはプラグイン画面から
    インストール)して有効化してください。
 2. **設定  ディスカッション**で必要な投稿タイプとオプションを選択してください。
 3. 任意のページや投稿に**スレッドボタン**ブロックを追加すると、訪問者がスレッドを開始
    できます。テンプレートから`hamethread_button()`を呼び出すこともできます。
 4. スレッドは`thread`アーカイブ(例:`/thread/`)に一覧表示されます。

WooCommerceは任意です。有効化されている場合、_マイアカウント_に**サポート**タブが
追加され、商品ページにサポートボタンを表示できます。

## FAQ

### 訪問者にスレッドを開始してもらうにはどうすればよいですか?

ページに**スレッドボタン**ブロックを追加するか、テンプレート内で`hamethread_button(
$parent_id, $label )`を呼び出してください。このボタンはREST APIを使ったスレッドフォーム
を開きます。

### スレッドだけでなく、投稿やカスタム投稿タイプでも使用できますか?

はい。**設定  ディスカッション  スレッドコメント**で必要な投稿タイプにチェックを
入れるか、`hamethread_dynamic_comment_post_types`フィルターを使用してください。

### WooCommerceは必須ですか?

いいえ。WooCommerce連携はWooCommerceが有効な場合にのみ自動的に有効になります。それ
以外の場合は、単体のフォーラムとして動作します。

### フォーム、バリデーション、通知はどのようにカスタマイズできますか?

HameThreadは多数のフィルターとアクションを公開しています。**開発者向け情報**をご覧
ください。

## 評価

このプラグインにはレビューがありません。

## 貢献者と開発者

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

貢献者

 *   [ Hametuha INC. ](https://profiles.wordpress.org/hametuha/)
 *   [ Fumiki Takahashi ](https://profiles.wordpress.org/takahashi_fumiki/)

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

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

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

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

## 変更履歴

#### 2.1.0

 * ブロックエディター用の**スレッドボタン**ブロックを追加。
 * スレッドの説明、非公開スレッド、コメント対応投稿タイプを設定する画面(**設定  
   ディスカッション**)を追加。
 * WordPress.org Plugin Check準拠のため、エスケープ・国際化・コーディング規約を改善。

#### 2.0.0

 * Twitter BootstrapとFontAwesomeへの依存を削除。
 * JavaScriptをモダン化。

#### 1.2.0

 * PHPの最小バージョンを7.4に引き上げ。

#### 1.1.0

 * 構造化データを追加。
 * ベストアンサー機能を追加。

#### 1.0.0

 * 初回リリース。

すべての変更履歴は[GitHub Releases](https://github.com/hametuha/hamethread/releases)
をご覧ください。

## メタ

 *  バージョン **2.1.3**
 *  最終更新日 **2日前**
 *  有効インストール数 **10未満**
 *  WordPress バージョン ** 6.6またはそれ以降 **
 *  検証済み最新バージョン: **7.0**
 *  PHP バージョン ** 7.4またはそれ以降 **
 *  言語
 * [English (US)](https://wordpress.org/plugins/hamethread/)、[Japanese](https://ja.wordpress.org/plugins/hamethread/).
 *  [プラグインを翻訳](https://translate.wordpress.org/projects/wp-plugins/hamethread)
 * タグ
 * [faq](https://ja.wordpress.org/plugins/tags/faq/)[forum](https://ja.wordpress.org/plugins/tags/forum/)
   [support](https://ja.wordpress.org/plugins/tags/support/)[thread](https://ja.wordpress.org/plugins/tags/thread/)
   [woocommerce](https://ja.wordpress.org/plugins/tags/woocommerce/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/hamethread/advanced/)

## 評価

レビューはまだ送信されていません。

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

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

## 貢献者

 *   [ Hametuha INC. ](https://profiles.wordpress.org/hametuha/)
 *   [ Fumiki Takahashi ](https://profiles.wordpress.org/takahashi_fumiki/)

## サポート

意見や質問がありますか ?

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