# Additional plugin & connect with existing WP account

**URL:** <https://www.patreondevelopers.com/t/additional-plugin-connect-with-existing-wp-account/501>\
**Category:** Wordpress Plugin\
**Created:** [April 24, 2018, 8:32am UTC](https://www.patreondevelopers.com/t/additional-plugin-connect-with-existing-wp-account/501 "2018-04-24T08:32:32Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![sekra24](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/sekra24/32/496_2.png) [@sekra24](https://www.patreondevelopers.com/u/sekra24)\
**Post date:** [April 24, 2018, 8:32am UTC](https://www.patreondevelopers.com/t/additional-plugin-connect-with-existing-wp-account/501/1 "2018-04-24T08:32:32Z")

</div>

Hey guys, we’re running a site with ultimatemember plugin ([https://de.wordpress.org/plugins/ultimate-member/](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](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 🙂

Thank you! Sebastian.

---

<div class="post-metadata">

**Author:** ![sam](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/sam/32/492_2.png) [@sam](https://www.patreondevelopers.com/u/sam)\
**Post date:** [April 24, 2018, 1:45pm UTC](https://www.patreondevelopers.com/t/additional-plugin-connect-with-existing-wp-account/501/2 "2018-04-24T13:45:00Z")

</div>

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](https://ultimatemember.com/extensions/social-login/) 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.

---

<div class="post-metadata">

**Author:** ![codebard](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/codebard/32/14_2.png) [@codebard](https://www.patreondevelopers.com/u/codebard)\
**Post date:** [April 24, 2018, 4:50pm UTC](https://www.patreondevelopers.com/t/additional-plugin-connect-with-existing-wp-account/501/3 "2018-04-24T16:50:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![sekra24](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/sekra24/32/496_2.png) [@sekra24](https://www.patreondevelopers.com/u/sekra24)\
**Post date:** [April 25, 2018, 9:37am UTC](https://www.patreondevelopers.com/t/additional-plugin-connect-with-existing-wp-account/501/4 "2018-04-25T09:37:34Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![sekra24](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/sekra24/32/496_2.png) [@sekra24](https://www.patreondevelopers.com/u/sekra24)\
**Post date:** [April 25, 2018, 9:42am UTC](https://www.patreondevelopers.com/t/additional-plugin-connect-with-existing-wp-account/501/5 "2018-04-25T09:42:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![codebard](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/codebard/32/14_2.png) [@codebard](https://www.patreondevelopers.com/u/codebard)\
**Post date:** [April 25, 2018, 4:34pm UTC](https://www.patreondevelopers.com/t/additional-plugin-connect-with-existing-wp-account/501/6 "2018-04-25T16:34:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pixel-prism](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/pixel-prism/32/2261_2.png) [@pixel-prism](https://www.patreondevelopers.com/u/pixel-prism)\
**Post date:** [June 5, 2018, 9:27pm UTC](https://www.patreondevelopers.com/t/additional-plugin-connect-with-existing-wp-account/501/7 "2018-06-05T21:27:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![codebard](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/codebard/32/14_2.png) [@codebard](https://www.patreondevelopers.com/u/codebard)\
**Post date:** [June 18, 2018, 12:33pm UTC](https://www.patreondevelopers.com/t/additional-plugin-connect-with-existing-wp-account/501/8 "2018-06-18T12:33:28Z")

</div>

> [@sekra24](#):
>
> Patreon\_Frontend::patreonMakeLoginLink()

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.

---

<div class="post-metadata">

**Author:** ![lumbaryard](https://avatars.discourse-cdn.com/v4/letter/l/71c47a/32.png) [@lumbaryard](https://www.patreondevelopers.com/u/lumbaryard)\
**Post date:** [March 31, 2019, 6:16pm UTC](https://www.patreondevelopers.com/t/additional-plugin-connect-with-existing-wp-account/501/9 "2019-03-31T18:16:30Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![codebard](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/codebard/32/14_2.png) [@codebard](https://www.patreondevelopers.com/u/codebard)\
**Post date:** [March 31, 2019, 7:30pm UTC](https://www.patreondevelopers.com/t/additional-plugin-connect-with-existing-wp-account/501/10 "2019-03-31T19:30:41Z")

</div>

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.

> **[Patreon WordPress - how to lock any part of your Website](https://paper.dropbox.com/doc/Patreon-WordPress-how-to-lock-any-part-of-your-Website--AaZTDyl3FjXrrLJzuqqQS6_vAg-dqneEVjvuYrPbkEJfOuhG)**
>
> How to lock any section, page, type of content, or template section through the code

---

<div class="post-metadata">

**Author:** ![Guillaume\_Vende](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/guillaume_vende/32/1115_2.png) [@Guillaume\_Vende](https://www.patreondevelopers.com/u/Guillaume_Vende)\
**Post date:** [December 4, 2019, 10:34pm UTC](https://www.patreondevelopers.com/t/additional-plugin-connect-with-existing-wp-account/501/11 "2019-12-04T22:34:11Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![codebard](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/codebard/32/14_2.png) [@codebard](https://www.patreondevelopers.com/u/codebard)\
**Post date:** [December 5, 2019, 1:00am UTC](https://www.patreondevelopers.com/t/additional-plugin-connect-with-existing-wp-account/501/12 "2019-12-05T01:00:14Z")

</div>

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.
