• Resolved MS416

    (@ms416)


    Hey.

    Love your plugin! I am working on a membership site and I may use membership plugins for the levels and content restriction, but I want to use your plugin for the user profile / user directory pages.

    I want in particular to change the item called “Edit Account” – and make it say “Edit Profile” (user account settings will be taken care of mostly to the membership plugin).

    Is it possible to change this? Can you please tell me how?

    I located this code in your plugin files:

    “`/**
    * Displays edit account button
    */
    public function edit_profile_button( $user_id ) {
    global $uwp_in_user_loop;
    $account_page = uwp_get_page_id( ‘account_page’, false );
    if ( $user_id ) {
    $user = get_userdata( $user_id );
    } else {
    $user = uwp_get_displayed_user();
    }

    $can_user_edit_account = apply_filters( ‘uwp_user_can_edit_own_profile’, true, $user->ID );

    if ( ! $uwp_in_user_loop && $account_page && is_user_logged_in() && ( get_current_user_id() == $user->ID ) && $can_user_edit_account ) { ?>
    <a href=”<?php echo get_permalink( $account_page ); ?>”
    class=”btn btn-sm btn-outline-dark btn-circle mt-n1″ data-toggle=”tooltip”
    title=”<?php esc_attr_e( ‘Edit Account’, ‘userswp’ ); ?>”><i
    class=”fas fa-pencil-alt fa-fw fa-lg”></i></a>
    <?php }
    }`

    Is it possible to edit this in some way or add something to replace it by using a child theme?

    Thank you
    Mike

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    You mean you don’t want an account page on your site, right? You can simply keep the page in draft or trash and re-save the page settings at UsersWP->General->Pages and let me know if it helps or not.

    Regards,
    Patrik

    Thread Starter MS416

    (@ms416)

    Hi Patrik. Sorry I think you have misunderstood.

    As my post states I want to change the 3 or so locations where your plugin says “Edit Account” – to read “Edit Profile.”

    That’s probably clearer right? I don’t know what would be required to edit this in multiple places.

    Basically I am going to use a membership app like Paid Memberships Pro – this app truly handles features that on a community site could be called “Account.” UsersWP app is really more of a profile and profile directory app. Hence I could use both apps if your app simply said ” Edit Profile” and not “Edit Account.”

    Thank you

    Thread Starter MS416

    (@ms416)

    And to be clear I’m not talking about simply renaming the page. That is easy. I’m talking about editing the on page items throughout that are labelled “Edit Account.”

    I understand this would require editing css or php?

    Thank you very much.

    Hi,

    To rename the label, an easy way is to use a translation file and translate those strings with the strings you want to output. You can use POEdit software for translation. More info can be found on https://userswp.io/docs/translate/. There is no filter provided so it’s not possible to change without changing in the core file.

    Regards,
    Patrik

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change name of “Edit Account”’ is closed to new replies.