• Resolved rdanamcd

    (@rdanamcd)


    What is the best way to send a Sync request for a POST on a Custom Field change.

    Already have the Actions added_post_meta, updated_post_meta, and deleted_post_meta in place. I see your class “Algolia_Post_Changes_Watcher” has a function sync_item( $post_id ). How do I call that function? Algolia_Post_Changes_Watcher::sync_item( … ); ?

    Thanks
    Dana

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor rayrutjes

    (@rayrutjes)

    Hey, sorry about the delay here, I’m currently OoO until next week.
    By very quickly staring at our code, we expose a filter hook algolia_changes_watchers which will give you access to all registered watchers.

    From there, you should be able to call the existing public methods available.

    Let me know if we find your way out.

    If you don’t, I’ll try to give you a hand next week if that can work for you.

    Best,

    Thread Starter rdanamcd

    (@rdanamcd)

    Great thanks.

    I saw that, just wanted to make sure I was heading down the right path.

    I’ll give it a try.

    Thanks
    Dana

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sync a Post on Meta Change’ is closed to new replies.