This topic has 2 replies, 3 voices, and was last updated 11 years by SQadmin.

  • Author
  • #6939
     gideon1210
    Participant

    When a member signs up is there a way of having a default account level they will be assigned and how do you change the upagrade account text on there profile

    #6961
     LordDax
    Participant
    #6988
     SQadmin
    Keymaster

    For the upgrade account text, redefine this function in your sweetdate-child/functions.php

    COPY CODE
    
    function kleo_membership_info()
    {
      global $membership_levels,$current_user;
      if (! $membership_levels) {
        return;
      }
      
      if (bp_is_my_profile())
      {
        if (isset($current_user->membership_level) && $current_user->membership_level->ID)
        {
          echo '<a href="'.pmpro_url("account").'"><span class="label radius pmpro_label">'.$current_user->membership_level->name.'</span></a>';
        }
        else
        {
          echo '<a href="'.pmpro_url("levels").'"><span class="label radius pmpro_label">'.__("Upgrade account",'kleo_framework').'</span></a>';
        }
      }
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?