Title: Taro Clockwork Post
Author: Tarosky Inc.
Published: <strong>6 jūnijs, 2017</strong>
Last modified: 19 marts, 2026

---

Meklēt spraudņus

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

![](https://ps.w.org/taro-clockwork-post/assets/icon.svg?rev=3633778)

# Taro Clockwork Post

 Autors [Tarosky Inc.](https://profiles.wordpress.org/tarosky/)

[Lejupielādēt](https://downloads.wordpress.org/plugin/taro-clockwork-post.1.2.8.zip)

 * [Sīkāka informācija](https://lv.wordpress.org/plugins/taro-clockwork-post/#description)
 * [Atsauksmes](https://lv.wordpress.org/plugins/taro-clockwork-post/#reviews)
 *  [Uzstādīšana](https://lv.wordpress.org/plugins/taro-clockwork-post/#installation)
 * [Attīstība](https://lv.wordpress.org/plugins/taro-clockwork-post/#developers)

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

## Apraksts

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

## Uzstādīšana

 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.

## BUJ

### 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;
    } );
    ```

## Atsauksmes

Par šo spraudni nav atsauksmju.

## Autori un izstrādātāji

“Taro Clockwork Post” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši
šādi cilvēki.

Līdzdalībnieki

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

“Taro Clockwork Post” ir tulkots lokalizācijā 1. Paldies [tulkotājiem](https://translate.wordpress.org/projects/wp-plugins/taro-clockwork-post/contributors)
par ieguldījumu.

[Tulkot “Taro Clockwork Post&#8221 savā valodā.](https://translate.wordpress.org/projects/wp-plugins/taro-clockwork-post)

### Vai jūs interesē attīstība?

[Pārlūkojiet kodu](https://plugins.trac.wordpress.org/browser/taro-clockwork-post/),
apmeklējiet[ SVN krātuvi ](https://plugins.svn.wordpress.org/taro-clockwork-post/)
vai abonējiet[ attīstības žurnālu](https://plugins.trac.wordpress.org/log/taro-clockwork-post/),
ko izveidojis [RSS](https://plugins.trac.wordpress.org/log/taro-clockwork-post/?limit=100&mode=stop_on_copy&format=rss).

## Izmaiņu žurnāls

#### 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.

## Meta

 *  Versija **1.2.8**
 *  Pēdējo reizi atjaunots: **pirms 6 mēnešiem**
 *  Aktīvās instalācijas: **20+**
 *  WordPress versija ** 5.9 vai jaunāka **
 *  Pārbaudīts līdz: **6.9.9**
 *  PHP versija ** 7.4 vai jaunāka **
 *  Valodas
 * [English (US)](https://wordpress.org/plugins/taro-clockwork-post/) un [Japanese](https://ja.wordpress.org/plugins/taro-clockwork-post/).
 *  [Tulkojiet savā valodā](https://translate.wordpress.org/projects/wp-plugins/taro-clockwork-post)
 * Birkas:
 * [expiration](https://lv.wordpress.org/plugins/tags/expiration/)[media](https://lv.wordpress.org/plugins/tags/media/)
   [post](https://lv.wordpress.org/plugins/tags/post/)
 *  [Papildu skats](https://lv.wordpress.org/plugins/taro-clockwork-post/advanced/)

## Vērtējumi

Vēl nav iesniegta neviena atsauksme.

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

[Skatīt visasatsauksmes](https://wordpress.org/support/plugin/taro-clockwork-post/reviews/)

## Līdzdalībnieki

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

## Atbalsts

Jums ir kaut kas ko teikt? Vajadzīga palīdzība?

 [Skatīt atbalsta forumu](https://wordpress.org/support/plugin/taro-clockwork-post/)