內容簡介
這個外掛的目的是透過一個按鈕自動設定文章的發布時間,以一個點擊即可完成。這個功能相當有用,因為在 WordPress 中設定排程並不是非常方便。這個插件可以自動設定日期(包括月份和年份)和時間(小時和分鐘),使用者可以在設定頁面中進行更改。
請參閱屏幕截圖以查看外掛的外觀。
這個外掛通過在文章編輯頁面添加一個按鈕來工作,但此按鈕僅顯示於草稿狀態的文章,以避免在編輯頁面中混亂。當按鈕被點擊時,外掛將查找可用的日期(少於限制的預定文章的日期)。如果有可用的日期,則外掛將指派最近可用的未來日期。
然而,為了自動為您設定排程,此外掛將僅在您進入編輯器時添加單個 JavaScript。JavaScript 的功能如下:
基於 PHP 產生的數據,查找可用日期。
在頁面中設定排程。
該 JavaScript 不與伺服器進行任何數據通訊(因為我不知道該怎麼做)。此 JavaScript 只從編輯器頁面上的元素(例如編輯按鈕,發布按鈕等)設定排程。總的來說,這是一個非常簡單的外掛。
外掛標籤
開發者團隊
原文外掛簡介
The purpose of this plugin is for automatically set the scheduled date just with one click. This is useful since it not that convenient to set schedule in WordPress. The plugin can set the date (including the month and the year) & time (hour & minutes) automatically and can be changed from the settings page.
Please see the screenshots to see how it look like.
This plugin works by adding a button in the post editor page, but this button only shows for the drafted post to avoid cluttering the editor page. When the button is clicked, the plugin will find the date that is available (have a less scheduled post than the limit). If there is some date that available, the plugin will assign the nearest available future date.
However, to automatically set the schedule set for you, this plugin will add single javascript only when you are in the editor. What this javascript do is:
Find the date that are available based on data generated in PHP.
Set the schedule in the page.
This javascript do not have any data communication with the server (since I don’t know how anyway). This javascript only set the schedule from the element in the editor page such as edit button, publish button, etc. This is really simple plugin after all.
