-
Notifications
You must be signed in to change notification settings - Fork 80
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
ActivityPub Query: Improve third party plugin support #1272
Conversation
Either this or we could also introduce a query like But the approach here is indeed useful for some cases: I have already real life examples in mind: Some event plugins have "events" and "event occurances". Usually the occurances are stored in a custom table, because the posts table is just not adequate for such special cases. This is also what "The Events Calendar" and "GatherPress" do. With that filter one could easily set an "occurance" as the targeted query, which would not be possible (in an easy and straight-forward way) without the filter I would guess. Edit: Maybe that example is not good, because the custom transformer might be able to negotiate that, if the related WP_Post object gets "identified" as the queried object by WordPress. |
What would be a good way for me to test this change? Go to an author archive page? |
this handles the content negotiation for authors, posts, comments and all other post-types. so you can check this by calling one or all of these sites with the |
Ah and adding the query bar was only to get sure that we have access to it! |
* check `$activitypub_object` before returning it * make queried object filterable * add phpdoc * added changelog * Fix phpcs issues * allow access to `author` --------- Co-authored-by: Konstantin Obenland <obenland@gmx.de>
See #1263