Skip Navigation

[Resolved] Automatically transferring authorship of posts on submitting CRED form

This support ticket is created 4 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by peterv-6 4 years, 4 months ago.

Assisted by: Minesh.

Author
Posts
#1683249

Tell us what you are trying to do?

We operate a company directory. We create profiles for companies and let a member of the company claim ownership of the profile, assigning them as author and giving ability to edit their company's profile.

We currently use woocommerce attached to Forms to enable companies in our directory to claim their company profile. The way it works now is a user who is authorised by the company completes an form to claim ownership that edits the company profile post and sets its status as Pending... the form has a payment associated with it ((for which our charge is $0) when the user completes the transaction on Woocommerce the authorship of the company-profile post is automatically assigned to the user completing the form. The company profile post in question would be reviewed by us before being republished with the new author.

That used to work well for us as we were planning to roll out a freemium model where companies would have the option of paying for premium services. We are no longer looking at doing that and are looking for an easy alternative to Woocommerce to automate the transfer of authorship to a person claiming a profile.

What we want to achieve is basically removing the transaction component. so that the form is completed and when the form is submitted authorship is transferred, the post goes to Pending, we get a notification (I know how to do this) and we must approve and republish the profile.

Is there an easy way of achieving this?

Cheers

Peter

#1683635

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Basically, you should use the Toolset forms.

You should create a Toolset post form and set the default post status to pending.
=> https://toolset.com/lesson-placement/lesson-placements-1621521-1612071/

And you can use the Toolset form's hook "cred_save_data" to update the post author:
=> https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data

Please check the following related ticket that shows how you can update the post-author using "cred_save_data" hook.
=> https://toolset.com/forums/topic/create-a-post-on-user-registration-and-set-the-user-as-the-author/#post-470971

Please let me know if you have any further queries.

#1712295

Thanks so much.. that addresses my question.