【问题标题】:Ultimate Member WordPress plugin : change text "edit profile" to "edit xyz" in profile form/tabUltimate Member WordPress 插件:在配置文件表单/选项卡中将文本“编辑配置文件”更改为“编辑 xyz”
【发布时间】:2019-02-18 07:23:06
【问题描述】:

我正在使用 Ultimate Member WordPress 插件。我想将文本“编辑配置文件”更改为“编辑 xyz”。但是,我在插件编辑器中找不到“编辑配置文件”。谁能告诉我在哪里更改文本?或者有没有其他方法?

【问题讨论】:

  • 请分享插件网址

标签: wordpress web membership


【解决方案1】:
  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;}
    

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-01-12
    • 2010-12-10
    • 1970-01-01
    • 2011-01-08
    • 2018-07-11
    • 1970-01-01
    相关资源
    最近更新 更多