이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

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.

NOTICE This plugin requires PHP 5.6 and over.

설치

  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.

FAQ

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”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“Taro Clockwork Post”(이)가 1(으)로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “Taro Clockwork Post”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

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.