WordPress.org

Ready to get started?Download WordPress

Forums

Co-Authors Plus
[resolved] Dynamically assign co-authors (2 posts)

  1. Saurabh Shukla
    Member
    Posted 2 years ago #

    Hi,

    I'm trying to establish a parent child relationship between users. I have been able to store these relationships using user meta. What I want to be able to do is, automatically assign the parent or the child user as a co-author, whenever one of them creates a new post/post type. What would be the right way to call the function add_coauthors?

    Thanks in advance.

    http://wordpress.org/extend/plugins/co-authors-plus/

  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 2 years ago #

    You might do something like this (untested): https://gist.github.com/2847390

    You'll need to ensure you're storing the user_login value in usermeta, and update the get_user_meta() call to use your proper key.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic