Users not being synced in a WP multisite configuration

Hello everyone,
I’m experiencing a problem with the latest version of the plugin (1.5.0) but I’m not sure it’s related with the upgrade.

Basically, I use to custom functions to inject data in the indexes, developed in an external plugin that uses the filters algolia_searchable_post_shared_attributes (working correcty) and algolia_user_record (not working).

When I edit a user, my “users index” does not get synced, even if the log in Algolia shows correctly the new item, and indicates the user being synced. --Task sync_item was handled in 0.036987s.–


Hi Emanuele,

By default we only index users if they have at least written one post.

You can change this behaviour by using the algolia_should_index_user filter provided by the plugin.

Here is an example that you can add to your theme’s functions.php file:


add_filter( 'algolia_should_index_user', '__return_true' );

Let me know if that helps :wink:

1 Like

Thanks a lot Raymond,
Absolutely brilliant. It worked right away. :slight_smile:

Have a great day,