I can't find the code which is used to publish a post i.e. the exact function that is used to do so. I tried looking for publish_post but the support page is empty for some reason. I am looking to add a couple of conditions before the post is published and stop it from positing if the conditions are not met. Where should I be looking for that piece of code?