wp_insert (insert in DB) (tag)
| wp_insert_attachment() | Adds a media file (attachment) to the WordPress media library. The file is not physically added — the function creates a post in the wp_posts table in the database and returns the ID of the created post. |
| wp_insert_category() | Inserts a new category into the database. Or updates an existing category by specifying a category ID. |
| wp_insert_comment() | Inserts/adds a comment into the database. |
| wp_insert_post() | Safely inserts/updates a post in the database. |
| wp_insert_term() | Adds a new taxonomy element (term, category) into a database. |
| wp_insert_user() | Creates a WordPress user in the Database. |