বৰ্ণনা
You can enter expiration date on edit screen.
This plugin runs cron every minute to search expired posts and make them private
.
ইনষ্টলেশ্যন
- Upload the plugin files to the
/wp-content/plugins/taro-clockwork-post
directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress.
- 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 aftertscp_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.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.