Is it possible to update the custom field daily within 7days?

For Example:

When a user created a new post, inside the post there's a Custom field name Points Earned. I would like to updated the Points Earned daily that will end within 7days based on the date they are created the post?

If a user have 10 Points then 24 hours later that points needs to increase by 10% and the automatic update will end in after 7 days.

I would like to know if that possible in cron? How?

1 Answer 1


Using wp_schedule_event() function, you can create your custom function to do this. and how to use this function refer this

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.