This has been a very useful class, but I ran into an issue where I needed the post_status to not get set to publish on creation, and didn't see a way around that with the current code. PHPStorm also removed the trailing whitespace, so apologies for all those innocuous changes.
This has been a very useful class, but I ran into an issue where I needed the post_status to not get set to publish on creation, and didn't see a way around that with the current code. PHPStorm also removed the trailing whitespace, so apologies for all those innocuous changes.