Archive | Actions by letter e RSS feed for this section

wp_insert_term

Adds a new term to the database. Optionally marks it as an alias of an existing term.Error handling is assigned for the nonexistence of the $taxonomy and $term parameters before inserting. If both the term id and taxonomy exist previously, then an array will be returned that contains the term id and the contents of what is returned. The keys of the array are ‘term_id’ and ‘term_taxonomy_id’ containing numeric values.

3795

Continue reading

wp_insert_post

Insert a post.If the $postarr parameter has ‘ID’ set to a value, then post will be updated.

3793

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