Tag Info

New answers tagged


WP Cron jobs are not reliable as it needs someone to visit the site at the time the event should fire. If you need precise timing, you should use server cron jobs. Anyways, lets look at your code and what is wrong and we can fix it wp is a better hook to use to hook your scheduled event, this is the earliest that postdata available. init is way to early. ...


The native trash bin It sounds like you're implementing your own version of the WordPress trash system. If you trash a post, the native way, it will get the trash post status and will be automatically deleted (permanently) after 30 days. You can change that in your wp-config.php file with: define( 'EMPTY_TRASH_DAYS', 10 ); for e.g. 10 days. You can ...

Top 50 recent answers are included