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

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in 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.

Viewing 1 post (of 1 total)