Title: Taro Clockwork Post
Author: TAROSKY INC.
Published: <strong>2017 年 6 月 6 日</strong>
Last modified: 2026 年 3 月 19 日

---

搜索插件

![](https://ps.w.org/taro-clockwork-post/assets/banner-772x250.png?rev=2609804)

![](https://ps.w.org/taro-clockwork-post/assets/icon-256x256.png?rev=2609804)

# Taro Clockwork Post

 作者：[TAROSKY INC.](https://profiles.wordpress.org/tarosky/)

[下载](https://downloads.wordpress.org/plugin/taro-clockwork-post.1.2.8.zip)

 * [详情](https://cn.wordpress.org/plugins/taro-clockwork-post/#description)
 * [评价](https://cn.wordpress.org/plugins/taro-clockwork-post/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/taro-clockwork-post/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/taro-clockwork-post/#developers)

 [支持](https://wordpress.org/support/plugin/taro-clockwork-post/)

## 描述

You can enter expiration date on edit screen.
 This plugin runs cron every minute
to search expired posts and make them `private`.

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/taro-clockwork-post` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Go to `Setting > Reading` and choose post type to expiration ready.

## 常见问题

### How to avoid post status to be private

Private is the default post status but if you want another case, use filter hook
for that.

    ```
    // Filter status if post type is `product`
    add_filter( 'tscp_expired_status', function( $status, $post ) {
       if ( 'product' == $post->post_type ) {
           $status = 'no-stock';
       }
       return $status;
    }, 10, 2 );
    ```

If status is `false`, this plugin doesn’t change post status.
 In such situation,
you might need adding any custom field to post. Use another action which will occur
just after `tscp_expired_status`.

    ```
    // do something just after post status is/isn't changed.
    add_action( 'tscp_post_expired', function( $post ) {
       // Post is still publish,
       // But add some custom fields
       update_post_meta( $post->ID, '_not_in_front_page', true );
    } );
    ```

### Change frequency of expiration check

If you are low-resource environment, you might need low frequency.
 For example,
assume that your site allows posts to be expired within 10 min. Use hook to delay
interval.

    ```
    add_filter( 'tscp_cron_interval', function() {
      // Change interval from 60 sec to 600 sec.
      return 600;
    } );
    ```

## 评价

此插件暂无评价。

## 贡献者及开发者

「Taro Clockwork Post」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ TAROSKY INC. ](https://profiles.wordpress.org/tarosky/)
 *   [ Fumiki Takahashi ](https://profiles.wordpress.org/takahashi_fumiki/)

「Taro Clockwork Post」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/taro-clockwork-post/contributors)
为本插件所做的贡献。

[帮助将「Taro Clockwork Post」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/taro-clockwork-post)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/taro-clockwork-post/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/taro-clockwork-post/)，或通过[RSS](https://plugins.trac.wordpress.org/log/taro-clockwork-post/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/taro-clockwork-post/)。

## 更新日志

#### 1.2.6

 * Fix month string error in Clasic editor’s meta box. This happened on Any 31st
   day in a month.

#### 1.2.2

 * Fix deploy script to avoid incorrect versioning.

#### 1.2.1

 * Available post type are expanded to all post types with `show_ui = true`.
 * Remove `withState` from editor script.

#### 1.2.0

 * Bump required PHP version.
 * Fix editor UI.

#### 1.1.0

 * Support block editor.

#### 1.0.1

 * Fix broken link on edit screen.
 * Add unit test for expiration process.

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **1.2.8**
 *  最后更新：**2 月前**
 *  活跃安装数量 **30+**
 *  WordPress 版本 ** 5.9 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/taro-clockwork-post/) 和 [Japanese](https://ja.wordpress.org/plugins/taro-clockwork-post/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/taro-clockwork-post)
 * 标签
 * [expiration](https://cn.wordpress.org/plugins/tags/expiration/)[media](https://cn.wordpress.org/plugins/tags/media/)
   [post](https://cn.wordpress.org/plugins/tags/post/)
 *  [高级视图](https://cn.wordpress.org/plugins/taro-clockwork-post/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/taro-clockwork-post/reviews/)

## 贡献者

 *   [ TAROSKY INC. ](https://profiles.wordpress.org/tarosky/)
 *   [ Fumiki Takahashi ](https://profiles.wordpress.org/takahashi_fumiki/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/taro-clockwork-post/)