Insert, delete, update (category)
| get_default_post_to_edit() | Gets default data for the post form when adding a new post in the admin panel. |
| wp_delete_post() | Trash or delete from the database specified post. The post can be of any type: post, attachment, page, custom type. |
| wp_insert_post() | Safely inserts/updates a post in the database. |
| wp_publish_post() | Publishes a post. Changes its status from future, draft, etc. to publish. Triggers all hooks necessary for changing the post status. |
| wp_trash_post() | Moves the specified post to the trash. If the trash is disabled, the post will be permanently deleted. |
| wp_update_post() | Updates a post with new post data in WordPress Database. |