Register users without confirmation

Well there is a function called wp_new_user_notification() which is pluggable you can alter it to stop user registration email: if ( ! function_exists( ‘wp_new_user_notification’ ) ) { function wp_new_user_notification( $user_id, $plaintext_pass=”” ) { return false; // because we don’t need to send email. } }

Adding register & login at top right corner

UPDATED: In the header.php you have these lines: </div><!– .hm-site-title –> </div><!– .site-branding-content –> You’ll want to put your div tag for the register and login buttons between them: </div><!– .hm-site-title –> <div class=”hm-custom-login-btns”> <?php $c_user = wp_get_current_user(); if( !is_user_logged_in( $c_user->ID ) ) : echo ‘<a href=”‘ . esc_url( wp_login_url() ) . ‘” alt=”‘ . … Read more

Adding register & login in WordPress website

integrating some of the suggested functions into your code: <?php $c_user = wp_get_current_user(); if( !is_user_logged_in( $c_user->ID ) ) : echo ‘<a href=”‘ . esc_url( wp_login_url() ) . ‘” alt=”‘ . esc_attr( ‘Login’, ‘textdomain’ ) . ‘”>’; echo _e( ‘Login’, ‘textdomain’ ); echo ‘</a>’; wp_register(“https://wordpress.stackexchange.com/”, ”); else : echo ‘Hello ‘ . $c_user->display_name . ‘, ‘; … Read more

Creating custom registration and login link in wordpress

Got the answer <?php $c_user = wp_get_current_user(); if( !is_user_logged_in( $c_user->ID ) ) : echo ‘<a href=”‘ . esc_url( site_url(“my-account”) ) . ‘” alt=”‘ . esc_attr( ‘register’, ‘textdomain’ ) . ‘”>’; echo _e( ‘register’, ‘textdomain’ ); echo ‘</a>’; echo ‘<a href=”‘ . esc_url( site_url(“my-account”) ) . ‘” alt=”‘ . esc_attr( ‘Login’, ‘textdomain’ ) . ‘”>’; echo … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)