BuddyBoss Home – Web Support Forums Solutions Social Learner Auto add list of countries to new Profile Field (WP backend)?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Question

    #60709
    @mln83

    Is this possible somehow? 🙂

    Would be great since it would take some time to manually add all 202 countries from the world.

    Best regards,
    Michael

    Answers

    #60715

    Anonymous
    @

    Hi @mln83
    Please try following, it will help

    https://gist.github.com/slaFFik/67e5782da62a2577d1f8

    Regards
    Varun Dubey

    #60762
    @mln83

    Hi @vapvarun,

    Thanks. It worked! 🙂

    Can I safely delete bp-custom.php afterwards or is it required to stay in /wp-content/plugins/ ?

    Best regards,
    Michael

    #60797

    Anonymous
    @

    Hi @mln83,

    It is required to say inside it and it is standard practice for BuddyPress specific customization.

    bp-custom.php


    Regards

    #60811
    @mln83

    Thanks @vapvarun,

    I was wondering – if I want to change / remove the list again at some point can I make the changes inside the bp-custom.php file and will the User fields in WP-Backend automatically be updated?

    The reason that I ask is because I am thinking about changing ‘field_group_id’ to ‘2’ instead of ‘1’ as the country list shouldn’t show up during registration but instead be shown from a second Field Group which I have created in WP backend. This second field group contains optional fields that the user can fill in after registration.

    Best regards,
    Michael

    #62851

    Anonymous
    @

    Hi @mln83, Hope you are doing good today

    Is your problem resolved? you can try to replace the id in the code.

    Feel free to post a reply if you need further support with this issue.

    Regards

    #62871
    @mln83

    Hi @pallavi,

    Thanks it’s fine now. I decided to keep “Country” in the “Primary” field group.

    I am having another critical issue here – https://www.buddyboss.com/support-forums/topic/require-user-to-agree-with-site-terms-and-conditions-upon-signup/

    I would really appreciate it if you could advise me on any plugins/code or solutions to help solve this problem?

    Best regards,
    Michael

    #62875

    Anonymous
    @

    Okay I will check that and reply you there..

    Thanks

Viewing 8 posts - 1 through 8 (of 8 total)
  • The question ‘Auto add list of countries to new Profile Field (WP backend)?’ is closed to new replies.