I have a new post that is triggered on a profile update. This post adds perfectly. No issues there.
After the post is added, I want to create a relationship to the user. I have tried so many hooks on a 999 priority including transition_post_status and rwmb_after_save_post
The author_Id and new post_ID are got correctly, but the relationship does not set. I am using:
MB_Relationships_API::add($author_id, $post_id, 'users_university_institution');
users_university_institution is the relationship ID from the builder.
What is going wrong?
Thanks!