Tag Archives: codex

wp_insert_comment

Inserts a comment to the database.The available comment data key names are ‘comment_author_IP’, ‘comment_date’, ‘comment_date_gmt’, ‘comment_parent’, ‘comment_approved’, and ‘user_id’.

3789

Continue reading

wp_insert_attachment

Insert an attachment.If you set the ‘ID’ in the $object parameter, it will mean that you are updating and attempt to update the attachment. You can also set the attachment name or title by setting the key ‘post_name’ or ‘post_title’.

3785

Continue reading