Problem: I would like to activate or deactivate a custom post based on the membership status of the post owner.
Solution: There's nothing built-in that will do this for you, but there are some APIs you can use to write custom code that will help.
Relevant Documentation:
Subscription status change hook: @https://docs.woocommerce.com/document/subscriptions/develop/action-reference/#section-2
Getting the results of a View in PHP:
@https://toolset.com/documentation/programmer-reference/views-api/#get_view_query_results
Update post status:
@https://developer.wordpress.org/reference/functions/wp_update_post/
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 |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
This topic contains 4 replies, has 2 voices.
Last updated by jeffM-14 3 years, 10 months ago.
Assisted by: Christian Cox.