Set custom field value when reaching expiration date
Got it. Plugin developer helped me looking at my suggested code. First, make sure you declare global $cfs (necessary when using Custom Field Suite Plugin). The following code checks for custom field named premium and if its value is set to 1 (which means it’s supposed to be a premium post) and also for a … Read more