终极会员WordPress插件:在个人资料表格/标签中将文字“编辑个人资料”更改为“编辑xyz”

问题描述 投票:0回答:1

我正在使用Ultimate Member WordPress插件。我想将文本“编辑个人资料”更改为“编辑xyz”。但是,我在插件编辑器中找不到“编辑配置文件”。任何人都可以告诉我在哪里更改文本?或者还有其他方法吗?

enter image description here

wordpress web membership
1个回答
0
投票
  1. 打开以下文件um-actions-profile.php your-wordpress / wp-content / plugins / ultimate-member / includes / core
  2. 查找“编辑个人资料”
  3. 将其替换为您想要的任何内容,确保在插件更新时可以更改此设置。
  4. 在我的代码中,它是行号。 1077
  5. 您还可以使用以下代码,以便在插件更新时更改将保持不变,请在活动主题functions.php中添加此代码 add_filter( 'um_myprofile_edit_menu_items', 'my_profile_edit_menu_items', 20, 1 );function my_profile_edit_menu_items( $items ) {$items = array( 'editprofile' => '<a href="' . um_edit_profile_url() . '" class="real_url">' . __( 'Edit xyz', 'ultimate-member' ) . '</a>', 'myaccount' => '<a href="' . um_get_core_page( 'account' ) . '" class="real_url">' . __( 'My Account', 'ultimate-member' ) . '</a>','logout' => '<a href="' . um_get_core_page( 'logout' ) . '" class="real_url">' . __( 'Logout', 'ultimate-member' ) . '</a>', 'cancel' => '<a href="#" class="um-dropdown-hide">' . __( 'Cancel', 'ultimate-member' ) . '</a>',);return $items;}
© www.soinside.com 2019 - 2024. All rights reserved.