Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does co-authors plus fire its own HTTP request to store coauthors? #1024

Open
scottfennell-toptal opened this issue Feb 18, 2024 · 1 comment

Comments

@scottfennell-toptal
Copy link

scottfennell-toptal commented Feb 18, 2024

I have written a plugin that synchs blog posts from one blog to another as they are published/updated/deleted.

It uses php to hook into save_post. I noticed recently that it is no longer catching updates to co-author assignments, because it seems like co-authors sends its own HTTP request to store coauthors, long after save_post has come and gone.

This is a nuisance for me because now I have to hook in twice (now using wp_set_object_terms) to capture all post changes, roughly doubling my network activity.

This behavior from co-authors is counter-intuitive. The post should be done saving ... when save_post is done.

Should I be doing something different or thinking about this differently somehow?

@oekeur
Copy link

oekeur commented Jun 14, 2024

@scottfennell-toptal
We have the same problem where we sync posts to a different database and need to have the data complete.
My PR doesn't solve the underlying problem you observed, but adding a new action at least helps to narrow down where to hook.
We have a patched version like this running for quite some time, which works a charm.
I hope it also helps you if the PR gets merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants