relevanssi_user_index_ok

apply_filters( 'relevanssi_user_index_ok', boolean $index, object $user )

This filter hook controls which users Relevanssi indexes.

Parameters

$index
(boolean) If true, index the user. If false, don’t. Default true.

$user
(WP_User) The user object.

More information

When Relevanssi Premium indexes users, this filter hook controls whether each user profile can be indexed or not. The function of this filter hook is similar to relevanssi_do_not_index (though this works in reverse).

For an example of using this filter hook, see Restricting the indexing to particular user roles.