Check Scheduled Posts with WP-CLI
WP-CLI commands to check for scheduled posts that have missed their publish date/time.
by Robert Went · github.com/robwent/wp-check-scheduled-posts-cli
★ 1stars
1forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/robwent/wp-check-scheduled-posts-cli/archive/refs/heads/master.zipReadme
WP Check Scheduled Posts with WP-CLI
This plugin is based on the scheduled-post-trigger plugin but uses wp-cli commands rather than running each time a user hits the site.
Commands
There is only one command.
php wp-cli.phar wpcspc check_posts
This checks for posts that have publish status set to 'future' with a past publishing time.
If any posts are found they will be transitioned to the 'publish' state.