Hello,
Thanks for the feedback! Sorry for the late answer, I’m currently really busy with the next patch.
The “Scheduled” post status should be used in conjonction with post_date
argument. However, the UI is not implemented yet due to the complexity to fit to everyone’s need.
I added it to the Trello board: https://trello.com/c/PXM9W3JS/126-dynamic-forms-add-post-date-setting-in-the-post-action-for-scheduled-status
Meanwhile, you can use the following code in order to filter the post creation arguments:
add_filter('acfe/form/submit/post_args/action=my-post-action', 'my_form_post_scheduled_args', 10, 4);
function my_form_post_scheduled_args($args, $type, $form, $action){
$args['post_date'] = date('Y-m-d H:i:s', strtotime('tomorrow'));
$args['post_date_gmt'] = date('Y-m-d H:i:s', strtotime('tomorrow'));
return $args;
}
Note: This hook target the Post Action named my-post-action
, make sure to update it with your setup.
Hope it helps ??
Regards.