Custom hook after user successfully verifies email

Question

Can anyone help me creating a function that I could use for the following scenario:

Basically I am trying to create a register form that has a hidden custom field with value of a post ID and store it under user custom field “abc”.

Now after user has successfully registered and completes email verification I want to run a code which transfer post (using that id) to his new account. (Change of owner of that post)

For better understanding, we have a bunch of companies listed on our website which we want to allow owners of that companies to claim their company listing.

We have successfully able to create hidden custom field and its saving the post id to user custom field abc. Now can anyone help us moving that post using post id to new owner?

Plugins we are using here are:

Advanced custom fields
WP user frontend

Thanks!

0
GoSSDHosting 4 weeks 2021-05-16T17:22:04-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse