so i need to make button or link which will update post publish date.

i found this but i dont know how to call it.

$time = current_time('mysql');

    array (
        'ID'            => $id,
        'post_date'     => $time,
        'post_date_gmt' => get_gmt_from_date( $time )

Read more here: How to update post publish date time on click wordpress


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: