Is there a way to add an array of users as authors/co-authors programmatically?
-
Every time a post is created or updated, I want to add an array of users (or update the current array of authors) as authors of a specific post I’m creating or updating. Is there a way to add them programmatically in PHP? These are being collected via ‘Groups’ plugin and are being stored in a metabox of post.php.
I have tried using the add_coauthors() function directly on my plugin but had no luck. Any idea how can I do this?
Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Is there a way to add an array of users as authors/co-authors programmatically?’ is closed to new replies.