apply_filters( 'relevanssi_user_data_to_index', array $insert_data, WP_User $user )
This filter hook filters the user profile data before it is indexed.
Parameters
$insert_data
(array) An array of source data for building the INSERT
queries.
$user
(WP_User) The user object.
More information
When Relevanssi Premium indexes a user profile, this filter hook is the last step before Relevanssi generates the INSERT
queries. These INSERT
queries will then add the user content to the Relevanssi index.
The format for this data is the same as in the relevanssi_indexing_data
filter hook. You can find the data format described there.
Modifying the data with this filter hook is possible but rarely makes sense. In general, you’re better off filtering the user object before indexing with the relevanssi_user_add_data
filter hook. This filter hook is more beneficial for debugging purposes.