Title: WP Crontrol Hours
Author: Tessa (they/them), AuRise Creative
Published: <strong>2022 年 11 月 8 日</strong>
Last modified: 2024 年 12 月 2 日

---

搜尋外掛

![](https://ps.w.org/crontrol-hours/assets/banner-772x250.png?rev=2814593)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/crontrol-hours/assets/icon-256x256.png?rev=2814593)

# WP Crontrol Hours

 由 [Tessa (they/them), AuRise Creative](https://profiles.wordpress.org/tessawatkinsllc/)
開發

[下載](https://downloads.wordpress.org/plugin/crontrol-hours.2.1.0.zip)

[即時預覽](https://tw.wordpress.org/plugins/crontrol-hours/?preview=1)

 * [詳細資料](https://tw.wordpress.org/plugins/crontrol-hours/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/crontrol-hours/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/crontrol-hours/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/crontrol-hours/#developers)

 [技術支援](https://wordpress.org/support/plugin/crontrol-hours/)

## 外掛說明

Take control of your CRON jobs by restricting them to your website’s low traffic
hours. From the admin screen, you can:

 * Specify a daily window of when recurring CRON events should be triggered.
 * Optionally limit events that run multiple times a day to only once a day.
 * Optionally restrict events that run multiple times a day to only during your 
   off-hours.
 * Target specific schedules, including custom ones created by other plugins.
 * Exclude specific CRON hooks from being affected

#### Benefits

Restricting your recurring CRON events to only run after hours helps with two (2)
things:

 1. Automatic updates for WordPress core, plugins, and themes are prevented from running
    during your highest-traffic times so users aren’t shown a maintenance page when
    it’s the most visible.
 2. Less stress is placed on your server when automatic maintenance occurs during low
    traffic times.

#### Ensuring CRON Events Always Run

WordPress CRON is based on traffic, which means if your site does not see a lot 
of traffic, CRON events may not be triggered at the time that they are scheduled.
Limiting your website’s CRON events to off-hours while also depending on site traffic
to trigger them may not produce the intended results. There are two (2) solutions
I recommend:

 1. **Use Server CRON.** It is recommended in the WordPress developer resources to 
    set up your system’s task scheduler to run on the desired intervals and to use 
    that to make a web request to `wp-cron.php`. [View WordPress Documentation](https://developer.wordpress.org/plugins/cron/hooking-wp-cron-into-the-system-task-scheduler/).
 2. **Use Cron-Job.org.** If you can’t set up your system’s task scheduler, I recommend
    outsourcing that job to cron-job.org to automatically ping your website’s `wp-cron.
    php` file. It is a free service from the German-based developers. Go to [Cron-Job.org](https://cron-job.org/).

## 螢幕擷圖

 * [[
 * Plugin settings screen
 * [[
 * Plugin status screen where you can see the calculated duration of the window 
   you set, the CRON schedules and hooks registered on your website
 * [[
 * Update Hours screen where you can perform a dry run of what events would be modified
   or manually run the event now
 * [[
 * An example of a dry run and what the output looks like
 * [[
 * An example of a real run and what the output looks like

## 安裝方式

There are three (3) ways to install my plugin: automatically, upload, or manually.

#### Install Method 1: Automatic Installation

Automatic installation is the easiest option as WordPress handles the file transfers
itself and you don’t need to leave your web browser.

 1. Log in to your WordPress dashboard.
 2. Navigate to **Plugins > Add New**.
 3. Where it says “Keyword” in a dropdown, change it to “Author”
 4. In the search form, type `TessaWatkinsLLC` (results may begin populating as you
    type but my plugins will only show when the full name is there)
 5. Once you’ve found my plugin in the search results that appear, click the **Install
    Now** button and wait for the installation process to complete.
 6. Once the installation process is completed, click the **Activate** button to activate
    my plugin.

#### Install Method 2: Upload via WordPress Admin

This method involves is a little more involved. You don’t need to leave your web
browser, but you’ll need to download and then upload the files yourself.

 1. [Download my plugin](https://wordpress.org/plugins/crontrol-hours/) from WordPress.
    org; it will be in the form of a zip file.
 2. Log in to your WordPress dashboard.
 3. Navigate to **Plugins > Add New**.
 4. Click the **Upload Plugin** button at the top of the screen.
 5. Select the zip file from your local file system that was downloaded in step 1.
 6. Click the **Install Now** button and wait for the installation process to complete.
 7. Once the installation process is completed, click the **Activate** button to activate
    it.

#### Install Method 3: Manual Installation

This method is the most involved as it requires you to be familiar with the process
of transferring files using an SFTP client.

 1. [Download my plugin](https://wordpress.org/plugins/crontrol-hours/) from WordPress.
    org; it will be in the form of a zip file.
 2. Unzip the contents; you should have a single folder named `crontrol-hours`.
 3. Connect to your WordPress server with your favorite SFTP client.
 4. Copy the folder from step 2 to the `/wp-content/plugins/` folder in your WordPress
    directory. Once the folder and all of its files are there, installation is complete.
 5. Now log in to your WordPress dashboard.
 6. Navigate to **Plugins > Installed Plugins**. You should now see my plugin in your
    list.
 7. Click the **Activate** button under my plugin to activate it.

## 常見問題集

Please check out the [FAQ on our website](https://aurisecreative.com/docs/crontrol-hours/frequently-asked-questions/?utm_source=wordpress.org&utm_medium=link&utm_campaign=crontrol-hours&utm_content=readme).

## 使用者評論

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

## 參與者及開發者

以下人員參與了開源軟體〈WP Crontrol Hours〉的開發相關工作。

參與者

 *   [ Tessa (they/them), AuRise Creative ](https://profiles.wordpress.org/tessawatkinsllc/)

[將〈WP Crontrol Hours〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/crontrol-hours)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/crontrol-hours/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/crontrol-hours/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/crontrol-hours/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/crontrol-hours/)。

## 變更記錄

#### 2.1.0 – November 9, 2023

 * Update: updated configuration to match other AuRise Creative plugins
 * Update: confirmed functionality for WordPress Core version 6.4
 * Feature: added additional resources in Plugin Support block on admin page (developer
   documentation, FAQ, and emergency website service)
 * Update: updated backend scripts to utilize defer strategy loading
 * Update: updated backend script to use `wp_add_inline_script` instead of `wp_localize_script`
   for AJAX URL.
 * Update: updated backend assets to use minified files when not debugging
 * Minor: updated JS files to use `let` and `const` instead of `var`
 * Minor: updated styles for admin page
 * Language: removed the `languages` folder and `Domain Path` in plugin to rely 
   on [Translating WordPress](https://translate.wordpress.org/projects/wp-plugins/crontrol-hours/)

#### 2.0.0 – March 30, 2023

 * Feature: Added a “Restrict Frequent” setting that, when enabled, will restrict
   events that run multiple times a day to only run between the daily start and 
   end times while maintaining their specified intervals.
 * UI: Updated the appearance of the settings page
 * UI: Added more information to the “Update Hours” tab and outputted information
 * Assets: Compressed the PNG images loaded on the backend

#### 1.1.0 – November 9, 2022

 * Feature: Added a plugin setting to explicitly exclude hooks from being automatically
   updated
 * Feature: Added a status and fix link to the list of links on the plugin page 
   between “Settings” and “Deactivate” to quickly navigate to those tabs from the
   plugins page
 * Fix: Updated the CRON event that is added when the plugin is activated to take
   place around midnight respective to the WordPress site’s timezone
 * Language: Added the `/languages/` directory with the POT file to allow translations.

#### 1.0.0 – November 3, 2022

 * Major: Submitted to WordPress.org repository!

## 中繼資料

 *  版本 **2.1.0**
 *  最後更新 **1 年前**
 *  啟用安裝數 **50+**
 *  WordPress 版本需求 ** 5.8 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.7.5**
 *  PHP 版本需求 ** 5.6.20 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/crontrol-hours/)
 * 標籤:
 * [business hours](https://tw.wordpress.org/plugins/tags/business-hours/)[wp cron](https://tw.wordpress.org/plugins/tags/wp-cron/)
 *  [進階檢視](https://tw.wordpress.org/plugins/crontrol-hours/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/crontrol-hours/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/crontrol-hours/reviews/)

## 參與者

 *   [ Tessa (they/them), AuRise Creative ](https://profiles.wordpress.org/tessawatkinsllc/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/crontrol-hours/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://just1voice.com/donate/)