WST Date Simulator

外掛說明

WordPress already lets you preview a single scheduled post through the editor’s Preview button. But that only shows the post on its own — it doesn’t tell you how your homepage, category archives, search results, or “Recent Posts” widgets will look once the post actually goes live.

WST Date Simulator fills that gap. Set a base date and time, and scheduled posts up to that point are shown as published — anywhere your theme normally lists them — to logged-in users with a chosen permission level. No more guessing what the page will look like until after it’s published.

Key features

  • Set a base date and time; scheduled posts up to that point are shown as published
  • Choose who can view the preview: Administrators only, Editors and above, or Authors and above
  • Choose which post types the preview applies to (posts, pages, and custom post types are all supported)
  • Automatically disables page caching while previewing, so cached scheduled content is never served to regular visitors
  • Shows a banner in both wp-admin and the front end while the preview is active
  • REST API requests are excluded, to avoid unintentional exposure through headless setups

About permissions

  • Viewing the preview and changing the plugin’s settings each use a separate permission check
  • Changing the settings always requires an Administrator (manage_options)
  • Who can view the preview is configurable from the settings screen: Administrators only, Editors and above, or Authors and above

螢幕擷圖

安裝方式

  1. Upload the plugin files to /wp-content/plugins/wst-date-simulator, or install the plugin through the “Plugins > Add New” screen in WordPress.
  2. Activate the plugin through the “Plugins” screen.
  3. Go to the “Date Simulator” menu in wp-admin to set the base date/time, preview permission, and target post types.

常見問題集

How is this different from the WordPress core Preview button?

The core Preview button only shows a single scheduled post on its own page. WST Date Simulator shows scheduled posts everywhere your theme normally lists them — homepage, archives, search results, widgets — not just the post itself.

Can anyone see the preview?

No. Only logged-in users who have the permission level chosen in the settings (Editors and above, by default) can see it.

Does this change the actual post data?

No. The post status in the database is never modified. It is only treated as “published” in memory while it’s being displayed; the real status stays future (WordPress’s internal name for “scheduled”).

Does it work with pages and custom post types?

Yes. The “Target post types” setting lets you choose which post types the preview applies to, individually.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈WST Date Simulator〉的開發相關工作。

參與者

〈WST Date Simulator〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈WST Date Simulator〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

  • Initial release