K
K
Konstanty_PL2015-12-15 17:19:42
WordPress
Konstanty_PL, 2015-12-15 17:19:42

How to automatically register a new user on two wordpress sites?

Good afternoon,
The problem is this - there is a site.com on which the information displayed depends on the status of the user:
1) An ordinary user sees only part of the information in the record.
2) A user with an active subscription sees what is hidden under the hyde (woocommerce membership)
And there is a training.site.com site - on which wordpress + learndash + a special theme is spinning.
The idea is that a user who has redeemed a paid subscription to a course on the site training.site.com automatically receives an account on site.com.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeniy, 2015-12-15
@eZhrv

You will need to understand what actions and hooks are. And also how to use them.
font-family.ru/chto-takoe-wordpress-xuki-i-kak-ix-...
oddstyle.ru/wordpress-2/stati-wordpress/xuki-v-wor...
Lists of Actions
https:/ /docs.woothemes.com/document/woocommerce-me...
https://codex.wordpress.org/Plugin_API/Action_Reference
You will most likely need Action User_register :
https://codex.wordpress.org/Plugin_API/Action_Refe.. When User_register
occurs on site 1, we perform the operation from the article:
https://tommcfarlin.com/create-a-user-in-wordpress/
This is basic. There are more nuances.
Hope you figure it out.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question