wp cron – Update last created post in custom post types with wp_cron()?

Question

I have a question about wordpress cron job.
I have created a website using elementor page builder. I made a form for client which my client used to send invoices to their clients.
Once my client submit the invoice form it creates post inside custom post type called “Invoices”.

when new invoice created I want a cron job function that updated that posts once after the new invoice created.

Please give me solution how can I setup cron job that only update newly created post only not others.

thanks in advance.

0
The Adobe Teacher 1 year 2023-01-27T16:00:14-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse