勉強がてら wp_insert_post 関数について英語版Codexを訳してみました。 ※日本語Codexは現時点では少し古かったです。 This function inserts posts (and pages) in the database. It sanitizes variables, does some checks, fills in missing variables like date/time, etc. It takes an object as its argument and returns the post ID of the created post (or 0 if there is an error). 【訳】 この関数は、データベースに投稿(そしてページ)を追加します。変数をサニタイズしたり、いくつかのチェックをかけたり、そしてdate/timeなど