-
Notifications
You must be signed in to change notification settings - Fork 62
Description
Is your feature request related to a problem? Please describe.
I am trying to hook in to re-index WPML translations of the post I'm saving. Happy to do this myself but I'm just hitting protect/private methods all over the place and final classes that I can't extend.
Describe the solution you'd like
I'd like to use Algolia_Posts_Index::get_records() to prepare my data.
Then my plan is to run it through Algolia_Index::sanitize_json_data() and $index->saveObjects().
Describe alternatives you've considered
I've tried extending the Algolia_Posts_Index but it is marked as final. Alternatively could final be removed?
Is there a way I can re-index a specific given post_id?
I've been looking at this thread specifically but it triggers pages and pages of reindexing, I just want the given post_id, not a full re-index.
#10 (comment)
Any advice would be much appreciated.
Thanks