add_action( 'save_post', 'save_post_action_update', 10, 3 );
function save_post_action_update( $post_id){
if ( ! wp_is_post_revision( $post_id ) ){
remove_action('save_post', 'save_post_action_update');
$time = date('Y-m-d H:i:s');
// wp_die( $time);
$post_data = array(
'ID' => $post_id,
'post_date' => $time,
'post_modified' => $time,
'post_modified_gmt' => get_gmt_from_date($time),
);
wp_update_post( wp_slash($post_data) );
add_action('save_post', 'save_post_action_update');
}
}
if ($i % 4 === 0) {
-> if (($i % 4) === 0) {
'</div">'