You appear to be a bot. Output may be restricted
Description
Alter the post date by applying the "reschedule" optionThis also takes into account the "reschedule_time" option, if set A Scheduled post may be in the following status Status post_date post_date_gmt post_modified post_modified_gmt Notes ——— ———- ————- ————- —————– ——————————– draft future 0 now now published future future future = now now Post scheduled for "future" date If a post is scheduled then there should be a one-off CRON event 'publish_future_post' e.g. extract from cron-view Jan 1, 2014 @ 9:14 (1388567692) One-off event publish_future_post [0]: 9422
Usage
$string = oik_batchmove_reschedule( $post_date );
Parameters
- $post_date
- ( string ) required – the current post date in WordPress post_date format
Returns
string the post date after the "reschedule" amount has been appliedSource
File name: oik-batchmove/admin/oik-batchmove-cron.phpLines:
1 to 13 of 13
function oik_batchmove_reschedule( $post_date ) { // $reschedule = "+451 days"; $reschedule = oik_batchmove_scheduled_option( "reschedule" ); $reschedule_time = oik_batchmove_scheduled_option( "reschedule_time" ); if ( $reschedule_time ) { $format = "Y-m-d ${reschedule_time}"; } else { $format = "Y-m-d H:i:s"; } $new_date = bw_date_adjust( $reschedule, $post_date, $format ); bw_trace2( $new_date, $post_date ); return( $new_date ); }View on GitHub View on Trac