needing help updating some PHP
-
I need to modify this code to point to the User Registration Login form not the one from this template. What would it look like?
this was found in the plugin’s PHP file
public static function render_submit_login_forms() {
?>
<div class=”tabed” id=”login-signup-forgot”><ul class=”tabs”>
<li class=”current”><?php esc_html_e( ‘Login’, ‘food-recipes-pack’ ); ?><span></span>
<?php if ( get_option( ‘users_can_register’ ) ) : ?>- <?php esc_html_e( ‘Sign Up’, ‘food-recipes-pack’ ); ?><span></span>
- <?php esc_html_e( ‘Forgot Password’, ‘food-recipes-pack’ ); ?><span></span>
<?php endif; ?>
<div class=”block current”>
<form id=”login” action=”login” method=”post”><p>
<label for=”username”><?php esc_html_e( ‘Username’, ‘food-recipes-pack’ ); ?></label>
<input id=”username” type=”text” name=”username”>
</p>
<p>
<label for=”password”><?php esc_html_e( ‘Password’, ‘food-recipes-pack’ ); ?></label>
<input id=”password” type=”password” name=”password”>
</p>
<p>
<input type=”checkbox” value=”forever” name=”rememberme” id=”remember” class=”checkbox”>
<label class=”checkbox-label” for=”remember”><?php esc_html_e( ‘Remember me’, ‘food-recipes-pack’ ); ?></label>
<br>
<input id=”login-submit” class=”submit_button readmore” type=”submit” value=”<?php esc_html_e( ‘Login!’, ‘food-recipes-pack’ ); ?>”
name=”submit”><img id=”login-loader”
src=”<?php echo get_template_directory_uri() . ‘/images/loading.gif’ ?>”
alt=”Loader”/>
<?php wp_nonce_field( ‘ajax-login-nonce’, ‘security’ ); ?>
</p>
<p class=”status”></p>
</form>
</div>
The topic ‘needing help updating some PHP’ is closed to new replies.