You appear to be a bot. Output may be restricted
Description
Perform scheduled republishing for selected posts
Usage
oik_batchmove_lazy_cron( $verbose );
Parameters
- $verbose
- ( mixed ) optional –
Returns
voidSource
File name: oik-batchmove/admin/oik-batchmove-cron.phpLines:
1 to 21 of 21
function oik_batchmove_lazy_cron( $verbose=false) { $post_date = oik_batchmove_query_post_date(); $posts = oik_batchmove_query_reposts( $post_date, 0 ); if ( $verbose ) { p( "Rescheduling posts for $post_date" ); } if ( $posts ) { foreach ( $posts as $post ) { if ( $verbose ) { p( "Rescheduling: " . $post->ID ); } oik_batchmove_republish_post( $post ); } } else { $posts = null; p( "No posts to reschedule" ); } oik_batchmove_log_reposted( $post_date, $posts ); }View on GitHub View on Trac