Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/291.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何更改登录注册表中显示的主题文本_Php_Wordpress - Fatal编程技术网

Php 如何更改登录注册表中显示的主题文本

Php 如何更改登录注册表中显示的主题文本,php,wordpress,Php,Wordpress,我正在使用Wordpress并安装了名为TML的插件 我想更改此注册页面的显示文本,而不触摸正在工作的功能。 我检查了插件TML的源代码,发现了这个文件 “主题我的登录/templates/register form.php” 您可以看到如下字段名 e的意思是“得到翻译”。在这种情况下,用户名。文本域是“主题我的登录”。因此,您可以只更改语言文件,而无需编辑php文件即可完成所有设置。您可以看到如下字段名 e的意思是“得到翻译”。在这种情况下,用户名。文本域是“主题我的登录”。因此,您可以只

我正在使用Wordpress并安装了名为TML的插件

我想更改此注册页面的显示文本,而不触摸正在工作的功能。

我检查了插件TML的源代码,发现了这个文件 “主题我的登录/templates/register form.php”



您可以看到如下字段名


e的意思是“得到翻译”。在这种情况下,用户名。文本域是“主题我的登录”。因此,您可以只更改语言文件,而无需编辑php文件即可完成所有设置。

您可以看到如下字段名

e的意思是“得到翻译”。在这种情况下,用户名。文本域是“主题我的登录”。因此,您可以只更改语言文件,而不必编辑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>