Skip to:
Content
Pages
Categories
Search
Top
Bottom

Profile field label working with WPMUDev Membership 2 Pro


  • JECPFG
    Participant

    @proforma_jec

    Full disclaimer: I’m not much of a programmer; more of a front end guy who gets by on the back end with trial and error. This one is above my skill level, however.

    I am using BuddyPress’ Profile Fields in conjunction with WPMUDev’s Membership 2 Pro plugin. I’ve created some new Profile Fields that I also want to be displayed on a user’s account page. I’ve found the file that needs to be updated; currently, the code displaying the default membership attributes looks like this:

    public function prepare_fields() {
    $fields = array(
    ‘personal_info’ => array(
    ‘first_name’ => __( ‘First name’, MS_TEXT_DOMAIN ),
    ‘last_name’ => __( ‘Last name’, MS_TEXT_DOMAIN ),
    ‘username’ => __( ‘Username’, MS_TEXT_DOMAIN ),
    ’email’ => __( ‘Email’, MS_TEXT_DOMAIN ),
    )
    );

    When I add new Profile Fields in BuddyPress, they show up as fields that users can edit within their profile but they don’t automatically display in this array. I can see how to add new fields to the list:

    ‘value_of_XXXX’ => __( ‘XXXX’, MS_TEXT_DOMAIN ),

    I just don’t know how to find the value of XXXX once I have created that field within BuddyPress. I have posted the same question in the WPMUDev forum but so far don’t have an answer.

    I am using WP 4.2.5 and BuddyPress 2.3.3. I am currently developing locally so I can’t send a link.

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)

  • JECPFG
    Participant

    @proforma_jec

    Hello again, just curious if someone can point me in the right direction on this? Really appreciate the help.


    djsteveb
    Participant

    @djsteveb

    @proforma_jec – given that wpmudev’s stuff (most of it anyway) is premium / paid things – you are likely to get little help with their stuff here at bp dot org.. the good thing for you is that wpmudev peeps are usually pretty quick to answer questions there, and generally come up with good solutions quickly as well. I’d suggest you ask about this via their support forums.


    JECPFG
    Participant

    @proforma_jec

    Hi djsteveb, I appreciate that but it’s been several days since I asked on the wpmudev’s support forums and they haven’t replied yet, so I’m anticipating the “you’ll need to ask BuddyPress” response. I figure if I ask in both forums, one side may have an answer.

    And since this is a function of the BuddyPress Profile Fields, I assumed I might have a better chance of getting a response here anyway. I know this isn’t overly complex for someone who knows the answer, I’m just hoping to find someone who does.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Profile field label working with WPMUDev Membership 2 Pro’ is closed to new replies.
Skip to toolbar