简体   繁体   English

如何更改THEME MY LOGIN寄存器的显示文字

[英]how can I change displayed text of THEME MY LOGIN register

I am using Wordpress and installed plugin named TML. 我正在使用Wordpress并安装名为TML的插件。

I'd like to change the displayed text of this registering page without touching the features working. 我想更改此注册页面的显示文本而不触及正常工作的功能。 enter image description here 在此输入图像描述

I had checked the source code of plugin TML, and I had found this file "theme-my-login/templates/register-form.php" 我检查了插件TML的源代码,我发现这个文件是“theme-my-login / templates / register-form.php”

<?php
/*
If you would like to edit this file, copy it to your current theme's directory and edit it there.
Theme My Login will always look in your theme's directory first, before using this default template.
*/
?>
<div class="tml tml-register" id="theme-my-login<?php $template->the_instance(); ?>">
    <?php $template->the_action_template_message( 'register' ); ?>
    <?php $template->the_errors(); ?>
    <form name="registerform" id="registerform<?php $template->the_instance(); ?>" action="<?php $template->the_action_url( 'register', 'login_post' ); ?>" method="post">
        <?php if ( 'email' != $theme_my_login->get_option( 'login_type' ) ) : ?>
        <p class="tml-user-login-wrap">
            <label for="user_login<?php $template->the_instance(); ?>"><?php _e( 'Username', 'theme-my-login' ); ?></label>
            <input type="text" name="user_login" id="user_login<?php $template->the_instance(); ?>" class="input" value="<?php $template->the_posted_value( 'user_login' ); ?>" size="20" />
        </p>
        <?php endif; ?>

        <p class="tml-user-email-wrap">
            <label for="user_email<?php $template->the_instance(); ?>"><?php _e( 'E-mail', 'theme-my-login' ); ?></label>
            <input type="text" name="user_email" id="user_email<?php $template->the_instance(); ?>" class="input" value="<?php $template->the_posted_value( 'user_email' ); ?>" size="20" />
        </p>

        <?php do_action( 'register_form' ); ?>

        <p class="tml-registration-confirmation" id="reg_passmail<?php $template->the_instance(); ?>"><?php echo apply_filters( 'tml_register_passmail_template_message', __( 'Registration confirmation will be e-mailed to you.', 'theme-my-login' ) ); ?></p>

        <p class="tml-submit-wrap">
            <input type="submit" name="wp-submit" id="wp-submit<?php $template->the_instance(); ?>" value="<?php esc_attr_e( 'Register', 'theme-my-login' ); ?>" />
            <input type="hidden" name="redirect_to" value="<?php $template->the_redirect_url( 'register' ); ?>" />
            <input type="hidden" name="instance" value="<?php $template->the_instance(); ?>" />
            <input type="hidden" name="action" value="register" />
        </p>
    </form>
    <?php $template->the_action_links( array( 'register' => false ) ); ?>
</div>

Which field do I have to change for my changing display such as "Register" "Password", etc? 我需要更改哪个字段以更改显示,例如“注册”“密码”等?

You can see the field names like 你可以看到像这样的字段名称

The _e means "get the translation for". _e表示“获取翻译”。 In thtis case for Username. 在用户名的情况下。 And the text domain is "theme-my-login". 文本域是“theme-my-login”。 So you can change the language file only and you are all set without editing the php files. 因此,您只能更改语言文件,并且您无需编辑php文件即可完成设置。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何修改我的 php 文件,以便成功登录/注册时的登录和注册按钮? - How can I modify my php file so that the login and register button on successful login / register? 登录主题我的登录wordpress时如何更改重定向 - how to change redirect when login in theme my login wordpress 我该如何做才能注册或登录我的代码? - How can I make it so that I can register or login with my code? 如何在wordnote主题的评论注释中编辑登录名的链接 - How can i edit the link to the login on my comment note for a wordpress theme 当主题设置为我的登录插件注册表单时设置弹出窗口 - set popup while theme my login plugin register form submit 添加复选框以注册主题我的登录表格 - 条款和条件 - Add Checkbox to register Form of theme my login - Terms and Conditions 更改注册/丢失密码“操作链接” URL,标题和“修改错误”页面。 主题我的登录插件驱动的Wordpress网络多站点 - Change Register/Lost Password “action links” URLs, titles & Modify Error pages. Theme My Login plugin driven Wordpress network multisite 我怎样才能改变Ornagehrm的主题 - How can i change Ornagehrm theme 如何将此 function “移动”到我的子主题,以便更改一些参数? - How do I “move” this function over to my child theme so I can change some parameters? 如何更改显示的朋友,以便可以共享我的应用程序? - how can i change the friends displayed so my app can be shared?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM