You appear to be a bot. Output may be restricted
Description
Update the title and content when a post with comments is being republished
Usage
oik_batchmove_handle_comments( $post );
Parameters
- $post
- ( object ) required – post object
Returns
voidSource
File name: oik-batchmove/admin/oik-batchmove-cron.phpLines:
1 to 15 of 15
function oik_batchmove_handle_comments( &$post ) { bw_trace2(); if ( $post->comment_count > 0 ) { $title_prefix = oik_batchmove_scheduled_option( "title_prefix" ); $prepend_content_pre_date = oik_batchmove_scheduled_option( "prepend_content_pre_date" ); $prepend_content_post_date = oik_batchmove_scheduled_option( "prepend_content_post_date" ); $post->post_title = $title_prefix . $post->post_title; $prepend = $prepend_content_pre_date; // $prepend .= " "; $prepend .= bw_date_i18n( $post->post_date ); // $prepend .= " "; $prepend .= $prepend_content_post_date; $post->post_content = $prepend . $post->post_content; } }View on GitHub View on Trac