• I’m trying to write a function to update the Co-Authors when I save a custom post type.

    I am taking values from a couple of custom fields (users) and trying to get Co-Authors to ‘follow’ these field.

    The main function works using $coauthors_plus->add_coauthors(), but I’m not sure how I can update the meta box in the sidebar of the post. Is there a cache I need to clear or a function to update this?

Viewing 1 replies (of 1 total)
  • Thread Starter joshmlabs

    (@joshmlabs)

    I’ve also noticed, using the bulk edit tool to simply update (with no changes) seems to update the meta box. My function is hooked to run on page save.

Viewing 1 replies (of 1 total)

The topic ‘Function to update Co-Authors’ is closed to new replies.