Hi Ernest,
Thank you for your time.
I did the job with an other solution.
I would like to user Custom Fields, but they are only usable on usermeta or postmeta.,Then, after submit a register form, I record all datas to a new usermeta “xprofile_fields”.
And now I can the filter on it. Here is my code :
function xprofile_data_after_save_to_usermeta_for_search( $obj ) {
update_user_meta( $obj->user_id, 'xprofile_fields_' . $obj->field_id, $obj->value );
}
add_action( 'xprofile_data_after_save', 'xprofile_data_after_save_to_usermeta_for_search' );
Thank you for your time !
Regards,
Steve T.