Automatically schedule expiration date on another connected post

[ad_1]

Hi,

I’m building a WooCommerce site where every product is tied to another post, a custom post type called “Video”. I’m trying to set an expiration time/date on a video, which works fine, but then I’d like for the connected product to also get this same expiration date from its associated video.

Is this possible to do? I’m fine with custom coding if necessary. The WC product and video CPT are connected with the ACF “Post Object” relational field, if that helps.

Thanks in advance!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer