dateModified
-
Hi, I am using the WPSiteSync for Content plugin
It copies all of my content from another page to the current website.
I am having a problem as follows“datePublished”: “2020-10-10T17:17:13+00:00”,
“dateModified”: “2020-03-04T07:35:44+00:00”,When I check the source code, the dateModified is still the previous date.
Is there a way for me to remove it to look like a new post.
I am using this filter of the WPSiteSync for Content pluginadd_action('spectrom_sync_push_content', 'callback_function', 10, 3); function callback_function($target_post_id, $post_data, $response) { $time = current_time('mysql'); wp_update_post(array( 'ID' => $target_post_id, 'post_status' => 'draft', 'post_date' => $time, 'post_date_gmt' => get_gmt_from_date( $time ) )); }Hope you understand what I write: D
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘dateModified’ is closed to new replies.