Title: Programatically add co-author?
Last modified: July 14, 2022

---

# Programatically add co-author?

 *  [Josh](https://wordpress.org/support/users/jmccallweb/)
 * (@jmccallweb)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/programatically-add-co-author/)
 * Is there a way to **programmatically **create co-authors and assign them to a
   post?
 * Something like the core wp_create_user() function and wp_update_post()? We have
   a bunch of author names stored as custom fields, and I’d like to migrate them
   to co-authors.
 * Thanks!

The topic ‘Programatically add co-author?’ is closed to new replies.

 * ![](https://ps.w.org/co-authors-plus/assets/icon-256x256.png?rev=2945095)
 * [Co-Authors Plus](https://wordpress.org/plugins/co-authors-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/co-authors-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/co-authors-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/co-authors-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/co-authors-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/co-authors-plus/reviews/)

## Tags

 * [custom fields](https://wordpress.org/support/topic-tag/custom-fields/)
 * [wp_create_user](https://wordpress.org/support/topic-tag/wp_create_user/)

 * 0 replies
 * 1 participant
 * Last reply from: [Josh](https://wordpress.org/support/users/jmccallweb/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/programatically-add-co-author/)
 * Status: not resolved