| 开发者 |
optimisthub fatihtoprakk
optimisthub fatih-toprak |
|---|---|
| 更新时间 | 2026年10月5日 06:45 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
future status, and publishes them using WordPress's own publishing functions.
Why it is safe for performance
post_date_gmt and post_status.wp_publish_post(), so normal publishing hooks still fire for caching, SEO and notification pluginsScheduled Posts Issue Fixer is a "set and forget" plugin. There are no settings. Your scheduled posts are checked automatically once the plugin is active.
Yes. By default every post type is checked. You can limit it to specific types with the scheduled_posts_issue_fixer_post_types filter:
add_filter( 'scheduled_posts_issue_fixer_post_types', function ( $types ) { return array( 'post', 'page', 'product' ); } );
20 per run by default. Change it with the scheduled_posts_issue_fixer_batch_size filter (maximum 500).
Yes. The plugin schedules a standard WP-Cron event, so it works with both WP-Cron and a system cron that calls wp-cron.php.
Yes, use the scheduled_posts_issue_fixer_should_publish filter:
add_filter( 'scheduled_posts_issue_fixer_should_publish', function ( $should_publish, $post ) { if ( 123 === $post->ID ) { return false; } return $should_publish; }, 10, 2 );
Yes, on deactivation and on uninstall.
deRegisterCron() called wp_clear_scheduled_hook( CRON_NAME ) with an undefined bare constant instead of self::CRON_NAME. On PHP 8 this threw Error: Undefined constant "CRON_NAME" and left the cron job behind permanently.every_minute, which is not a valid WordPress cron schedule, so no working event was created. A real every-minute schedule is now registered.post_date_gmt in GMT instead of applying gmt_offset twice.OptimistHub\ScheduledPostsIssueFixer).wp_publish_post() with a fresh post object, and each post's status is re-checked before publishing, so posts edited between the query and the update are not published by mistake.uninstall.php that removes the cron event and the legacy cron event name.scheduled_posts_issue_fixer_batch_size, scheduled_posts_issue_fixer_post_types and scheduled_posts_issue_fixer_should_publish.