Change name of “Edit Account”
-
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
- The topic ‘Change name of “Edit Account”’ is closed to new replies.