Skip to content
Advertisement

Tag: refresh

PHP session update at certain time

I have a php website where I need to unsubscribe a student after one month for example .. for each student I have a “subscribed” value in the mysql database where it can be 0 (unsubscribed) or 1 (subscribed).. I also have a registration date whereby I can know the time after one month for each student. the question is,

Generate unique code every six hour with wordpress rest api

I want to generate 12 digit unique code with wordpress rest api which refresh every six hours. I didn’t find any code or method for my requirement. Example URL: ….domainname.com/wp-json/astra-sites/v1/get-last-unique-code Json code on above link: This code refresh every six hours. Please give me code or details to generate same code which refresh every six hours. I know how to

Advertisement