# WordPressでのサブスクリプション管理（Ultimate Member + Paid Memberships Pro）

**URL:** https://meta.discourse.org/t/managing-subscriptions-through-wordpress-ultimate-member-paid-memberships-pro/174912
**Category:** Support
**Created:** [2021 年 1 月 4 日午前 2:22 UTC](https://meta.discourse.org/t/managing-subscriptions-through-wordpress-ultimate-member-paid-memberships-pro/174912 "2021-01-04T02:22:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![monumentex](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/monumentex/32/204913_2.png) [@monumentex](https://meta.discourse.org/u/monumentex)
#### Post date: [2021 年 1 月 4 日午前 2:22 UTC](https://meta.discourse.org/t/managing-subscriptions-through-wordpress-ultimate-member-paid-memberships-pro/174912/1 "2021-01-04T02:22:50Z")

</div>

こんにちは、皆さん。このコミュニティの一員になれてとても嬉しいです。

私は感情知能と人間関係に関するコミュニティを構築しています。ここでは、質問をしたり、愚痴をこぼしたり、アドバイスを提供したり、単に話を聞いてもらったりできる場所です。フォーラムの基礎レベルは無料で提供されます。より本格的でセラピー的なセクションは、有料サブスクリプションによるプライベートアクセスとなります。

私の実装計画について、方向性が正しいか確認するためにフィードバックをいただければと思います。現在、このプラットフォームを以下の技術でプロトタイプ化しています。

- WordPress - CRM
- WooCommerce - ビタミン・健康製品
- Discourse - フォーラム
- Ultimate Member - アカウント/ロール管理
- Paid Memberships Pro - サブスクリプション管理

* * *

私の理解が正しいか確認させてください。ロールは Ultimate Member で設定すべきでしょうか（無料購読者、ゴールドメンバー、モデレーター、著者など）。Paid Memberships Pro は、誰かがアカウントをアップグレードした際に Ultimate Member にフックを発火させるべきでしょうか。その後、Discourse は [WP Discourse](https://github.com/discourse/wp-discourse) プラグインを通じてそれらのグループと権限をミラーリングできるのでしょうか。

私の認識は合っていますか？

Discourse 内のロールは、Ultimate Member 内のロールとは別に設定する必要がありますか？それとも自動的にコピーされますか？

このプロジェクトの開発において、他に考慮すべき点はありますか？

* * *

以下のスレッドを3つ読みました。実装のアドバイスというよりは、核心となる機能が正しい形で組み立てられているという確認を求めているのです。

> [@Manage group membership in Discourse with WP Discourse SSO](https://meta.discourse.org/t/managing-discourse-group-membership-with-wp-discourse-sso/74724/59):
>
> When Discourse is used as the SSO provider, you can check if a WordPress user has a Discourse account by checking if the value returned by this statement is empty: get\_user\_meta( $user\_id, 'discourse\_sso\_user\_id', true ); You’ll need to do something to handle the case where the user doesn’t yet have a Discourse account. Creating the user via the API and adding them to the appropriate groups is probably the right solution. It will take some work to set that up.

> [@Memberpress: how to add users to groups upon Sign up](https://meta.discourse.org/t/memberpress-how-to-add-users-to-groups-upon-sign-up/83478/11):
>
> Try this. I haven’t tested it, so there could be errors. It’s worth having this as a reference. Let me know if it doesn’t work. add\_filter( 'wpdc\_sso\_params', 'wpdc\_custom\_sso\_params' ); function wpdc\_custom\_sso\_params( $params ) { $add\_groups = array(); $remove\_groups = array(); if ( current\_user\_can( 'mepr-active','memberships:48259,48238' ) ) { $add\_groups[] = 'TransformPlus'; } else { $remove\_groups[] = 'TransformPlus'; } if ( current\_user\_can( 'mepr-active','memberships:…

> [@Install and configure the WP Discourse Wordpress plugin for Discourse](https://meta.discourse.org/t/wp-discourse-plugin-installation-and-setup/50752):
>
> To get started with the WP Discourse Plugin, go through each of these topics in order and watch the videos at the top of the topic. [Install the plugin](https://meta.discourse.org/t/install-the-wp-discourse-plugin/223489/1)[Connect to Discourse](https://meta.discourse.org/t/connect-wp-discourse-to-discourse/223490/1)[Set up Publishing](https://meta.discourse.org/t/wp-discourse-and-publishing-posts-to-discourse/223492/1)[Set up Commenting](https://meta.discourse.org/t/wp-discourse-and-commenting/223493/1)[Set up DiscourseConnect](https://meta.discourse.org/t/wp-discourse-and-discourseconnect/223494/1) The two main plugin features, Publishing and [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) don’t have to be used together. You can just set up Publishing (and Commenting), and not use [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true), or just set up [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true), or set up both. There’s a short description of each featu…

* * *

また、このプロジェクトを共に実装してくれる開発者やデザイナーを募集しています。興味がある場合、または信頼できるグラフィックデザイナーやウェブ開発者の素晴らしい推薦がある場合は、遠慮なく声をかけてください。

ありがとうございます！

---

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [2021 年 1 月 4 日午前 3:39 UTC](https://meta.discourse.org/t/managing-subscriptions-through-wordpress-ultimate-member-paid-memberships-pro/174912/2 "2021-01-04T03:39:05Z")

</div>

> - WooCommerce
> - Ultimate Member
> - Paid Memberships Pro

これらすべてを使用する必要はありません。すでに WooCommerce を使用する予定であれば、WooCommerce コアとシームレスに連携する [WC Subscriptions](https://woocommerce.com/products/woocommerce-subscriptions/) や [WC Memberships](https://woocommerce.com/products/woocommerce-memberships/) を採用する方が賢明です。PMPro や Ultimate Member による追加のレイヤーは、状況を複雑にし、信頼性を低下させるだけです。

あるいは、[Discourse Subscriptions](https://meta.discourse.org/t/discourse-subscriptions/140818) を採用し、Discourse を SSO プロバイダーとして利用することを検討してください。メンバーシップのメリットがフォーラムの特定の領域へのアクセスである場合、これが最も適切な解決策となり、WordPress でのメンバーシップ管理は不要になります。

---

<div class="post-metadata">

### Author: ![monumentex](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/monumentex/32/204913_2.png) [@monumentex](https://meta.discourse.org/u/monumentex)
#### Post date: [2021 年 1 月 4 日午後 3:44 UTC](https://meta.discourse.org/t/managing-subscriptions-through-wordpress-ultimate-member-paid-memberships-pro/174912/3 "2021-01-04T15:44:50Z")

</div>

有料プラグインの年間200ドルの費用を回避しようとしたのです。Discourse Subscriptionsに関するヒントをありがとうございます。それだけで要件を満たせるかもしれません。

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2021 年 2 月 3 日午後 3:44 UTC](https://meta.discourse.org/t/managing-subscriptions-through-wordpress-ultimate-member-paid-memberships-pro/174912/4 "2021-02-03T15:44:52Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
