Skip to content

Fix: Use 'ep_' . $indexable->slug . '_sync_kill' to prevent indexing the object#4282

Open
burhandodhy wants to merge 7 commits intodevelopfrom
fix/4278
Open

Fix: Use 'ep_' . $indexable->slug . '_sync_kill' to prevent indexing the object#4282
burhandodhy wants to merge 7 commits intodevelopfrom
fix/4278

Conversation

@burhandodhy
Copy link
Contributor

Description of the Change

This PR ensures that using ep_' . $indexable->slug . '_sync_kill is sufficient to prevent the object from being indexed, either through sync or post update.

Closes #4278

How to test the Change

Changelog Entry

Developer - : Ensure ep_{$indexable->slug}_sync_kill properly prevents object indexing during sync and post updates.

Credits

Props @burhandodhy @felipeelia @matthijsch

Checklist:

@burhandodhy burhandodhy marked this pull request as ready for review February 17, 2026 09:43
@burhandodhy burhandodhy added this to the 5.3.3 milestone Feb 17, 2026
* @param int $object_id The object ID
* @return null|bool
*/
public function sync_password_protected_orders( $new_skip, bool $skip, $object_id ) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@burhandodhy let's avoid forcing types on methods hooked into actions and filters, as this has caused us some problems lately. We can certainly cast it to bool on return though.

burhandodhy and others added 4 commits February 23, 2026 12:57
Co-authored-by: Felipe Elia <felipe.elia@fueled.com>
Co-authored-by: Felipe Elia <felipe.elia@fueled.com>
Co-authored-by: Felipe Elia <felipe.elia@fueled.com>
Co-authored-by: Felipe Elia <felipe.elia@fueled.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants