Additional plugin & connect with existing WP account

Hey guys, we’re running a site with ultimatemember plugin (https://de.wordpress.org/plugins/ultimate-member/) and have existing accounts. Is it possible to create a link “Connect this account with patreon”?

On your documentations page (https://www.patreon.com/portal/how-to/build-on-wordpress) it says: “Developers can build additional plugins that work together with the official Patreon WordPress plugin. These can offer creators additional functionality.”

But how? I didn’t find any documentation about wp hooks (filters, actions). Should we use the PHP classes? Maybe you can provide the minimal information to accomplish this :slight_smile:

Thank you! Sebastian.

Are you looking to just offer the ability for a user to log in to your site using their Patreon account (which will then create a local account) or do you want to be able to integrate Patreon functionality (i.e locking posts by reward) into your Wordpress website?

The Ultimate Member plugin offers a Social Login extension which doesn’t support Patreon but because Patreon uses the OAuth standard and LinkedIn etc. do too you could probably purchase that extension and then duplicate the LinkedIn functionality and modify it to support Patreon, but that’s only a good option if your use case is login only and you do not need to do things like restrict access to patrons.

Documentation is in the works currently.

If you describe what you want to do, i can tell you which hooks and which functions you can use.

Possibly you would need to integrate it with ultimate member hooks too.

Hi Sam, I want to restrict the access for patreons. But I thought it would be great if both ways are possible:

  1. Register/Login with standard ultimatemember forms -> Connect to patreon afterwards
  2. Register/Login with patreon -> Add user Email and Password afterwards with ultimatemember profile.

You know what I mean?

Nice to hear that the documentation is in work.

Currently I’m using the functionality like this:

<?php
namespace My/Class;
use Patreon_Wordpress;
use Patreon_Frontend;
...
var_dump(Patreon_Frontend::patreonMakeLoginLink());
var_dump(Patreon_Frontend::isUserLoggedInPatreon());
....

Is this your considered way of doing it?`

Thank you, Sebastian

That’s a good way of doing it, Sebastian.

Sorry to resurrect an old thread, but I am pretty novice when it comes to PHP. I’m trying to do exactly the above; which file would I put it in, and where?

Thanks!!

echo Patreon_Frontend::patreonMakeLoginLink();

will show the login link, and,

if(Patreon_Frontend::isUserLoggedInPatreon()) {

}

will check if user is logged into Patreon.

Anywhere you put them in in PHP code.

1 Like

Is there any progress on this feature?
Or, has anyone figured out how to integrate Patreon Account + Wordpress Account + Social login?
Currently using WP-Members for access to premium posts, hoping to use Patreon for paid memberships.
Thanks!

I replied to your other thread.

Additionally, yeah, using the code in this thread, you can integrate any plugin with PW. The below document provides a piece of code which would allow you to integrate PW’s membership checking with any other plugin.

Hello everyone!

I’m using this topic because I’d like to have exactly the same behaviour discribed in the first message: I’d like to plug Patreon login button to enable creation of accounts with Ultimatemember plugin.
Before I purchase Social Login extension, I’d like to be sure I’ll be able to integrate it.

I’m writing this message because I simply do not understand, with previous replies, if it possible or not.

Thanks for your help!

I think with only Ultimate Member plugin, you can just use it as a social login. For it to work with the info in your Patreon campaign, Patreon features would need to have been implemented in Ultimate Member. I dont know if they have done that.

You can use Patreon WordPress with Ultimate Member or any other membership plugin side by side. But currently you may not be able to lock the same content with both plugins. We will look into such compatibility possibilities in near future.

Linking a Patreon member who logs in via social login of Patreon WordPress to a level or account at Ultimate Member is surely possible, but in the current state it would require some code modifications, or extensive configuration with Ultimate Member if it provides such mapping of user roles.