Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Can Search adhere to menu visibility rules or some other visibility logic? › Reply To: Can Search adhere to menu visibility rules or some other visibility logic?
August 18, 2023 at 1:28 pm
#45112
Keymaster
Hi Bill,
Great!
The reason is, that the index does not update if the post is not saved, so the SKU is not being added to the database. I suggest triggering at least the save_post hook after each item is pushed, so that WordPress can run all the triggers related to that item. It is a best practice, because WordPress and plugins can have some hooks applied to this for maintenance (like Ajax Search Pro), so this way the index is kept up to date.