Home Forums General Issues Using acf field to change post owner


Using acf field to change post owner

  • 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


Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.