0

What function changes a post's timestamp? I created a post from frontend script, but I need to add a date picker to set the date of the visit.

1

You should be able to submit the following information to set a custom date

$_POST['aa'] // Month
$_POST['mm'] // Day
$_POST['jj'] // Year
$_POST['hh'] // Hour
$_POST['mn'] // Minute
$_POST['ss'] // Second

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.