# Gestire gli abbonamenti tramite Wordpress (Ultimate Member + Paid Memberships Pro)

**URL:** <https://meta.discourse.org/t/managing-subscriptions-through-wordpress-ultimate-member-paid-memberships-pro/174912>\
**Category:** Product Support\
**Created:** [4 Gennaio 2021, 2:22am 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:** 1\
**Showing post:** 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:** [4 Gennaio 2021, 2:22am UTC](https://meta.discourse.org/t/managing-subscriptions-through-wordpress-ultimate-member-paid-memberships-pro/174912/1 "2021-01-04T02:22:50Z")

</div>

Ciao a tutti, è fantastico far parte di questa comunità.

Sto sviluppando una comunità incentrata sull’intelligenza emotiva e sulle relazioni. È uno spazio dove le persone possono fare domande, sfogare le proprie frustrazioni, offrire consigli o semplicemente trovare un orecchio attento. Il livello base del forum sarà gratuito. Una sezione più approfondita e terapeutica sarà riservata e accessibile solo tramite abbonamento a pagamento.

Vorrei ricevere un feedback sul mio piano di implementazione per assicurarmi di essere sulla strada giusta. Finora, ho prototipato questa piattaforma utilizzando le seguenti tecnologie:

- Wordpress - CRM
- WooCommerce - Vitamine, prodotti per la salute
- Discourse - Forum
- Ultimate Member - Gestione account/ruoli
- Paid Memberships Pro - Gestione abbonamenti

* * *

Ho capito correttamente che i ruoli dovrebbero essere impostati in Ultimate Member (Abbonato gratuito, Membro Gold, Moderatore, Autore, ecc.)? Paid Memberships Pro dovrebbe attivare dei hook su Ultimate Member quando un utente aggiorna il proprio account. Discourse può quindi replicare questi gruppi e permessi tramite il plugin [WP Discourse](https://github.com/discourse/wp-discourse).

È corretto?

I ruoli in Discourse devono essere configurati separatamente da quelli in Ultimate Member? Vengono copiati automaticamente?

C’è qualcos’altro che devo considerare nello sviluppo di questo progetto?

* * *

Ho letto questi tre thread. Immagino che non stia cercando consigli sull’implementazione, ma una conferma che la funzionalità di base sia strutturata nel modo giusto.

> [@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…

* * *

Sto anche cercando di assumere uno o più sviluppatori e designer per implementare questo progetto insieme a me. Non esitate a contattarmi se siete interessati o se avete un’ottima raccomandazione per un grafico o uno sviluppatore web di cui vi fidate.

Grazie!

---

_[View the full topic](https://meta.discourse.org/t/managing-subscriptions-through-wordpress-ultimate-member-paid-memberships-pro/174912)._
