This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Add description field from buddypress

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Add description field from buddypress Reply To: Add description field from buddypress

#27337
Kahndryl35Kahndryl35
Participant

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.