I registered a custom post type "job" to create a job board site. How can I set without plugin that the status of the posts is automatically changed to Pending after 90 days? I'm new to WordPress and PHP. I have tried some solutions from the internet, but they are not working.
I'm sorry I'm not really good at PHP, I can not write code myself. Do these solutions have to wait 1 day to test if I change the code that has expired 1 day? Because I put the code into my functions.php and nothing happened.
Code for automatic expiration of contributions after 30 days
Automatically post pending posts after 30 days and update the post date when users update the posts
Set post to draft after setting the period based on the post_modified date
Posts expiring after a date (deleted)