I would like to change the WordPress page’s publish date based on post id programmatically
You will need to use wp_update_post function to update the publish date info of a WordPress Page
$page = array(); $page['ID'] = 1; // the page ID you want to update $page['post_date'] = $your_date; // uses 'Y-m-d H:i:s' format wp_update_post($page);