achttienvijftien/missed-schedule-fixer

Fixes "missed schedule" problems with posts
120,326 1
Install
composer require achttienvijftien/missed-schedule-fixer
Latest Version:1.1.0
PHP:^8.1
License:GPL-3.0-or-later
Last Updated:Aug 19, 2026
Links: GitHub  ·  Packagist
Maintainer: dennisenderink

Missed Schedule Fixer

Ever had problems with scheduled posts not being published? This plugin fixes that problem.

Configuration

Every minute the plugin looks for scheduled posts that lost their publish event. To keep that query fast, only posts scheduled within a window around the current time are considered: by default from one day into the past up to one hour into the future. Posts that were scheduled long before that window are considered stale and are left alone.

Use the achttienvijftien_missed_schedule_fixer_query_args filter to change the query. For example, to look a week into the past instead of a day:

add_filter(
	'achttienvijftien_missed_schedule_fixer_query_args',
	function ( $query_args ) {
		$query_args['date_query'][0]['after'] = wp_date( 'Y-m-d H:i:s', time() - WEEK_IN_SECONDS );

		return $query_args;
	}
);

Keep the query bounded by post_date. Removing the date query brings back the slow, unbounded behaviour this window is meant to avoid.

Prerequisites

Basic installation

Testing

Testing

Setup

  1. Install Composer packages: composer install
  2. Install the correct Node.js version: nvm install
  3. Install NPM packages: yarn
  4. Start wp-env yarn wp-env start
  5. Check if test suite is ready: yarn test
  6. When test result is OK you're ready to start writing tests in test/php

Related Packages

webdevstudios/cmb2-attached-posts

Custom field for CMB2 for creating post relationships.

66,215 134
justdev/inertia-wordpress

The WordPress adapter for Inertia.js

62 2
lara-press/framework

The LaraPress framework.

3,900 3
pressor/mu-plugin

Wordpress as a composer dependency in the context of a Laravel appliction. This...

9 0