Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

wp-login-form

Auto redirect after session expire, but only for one user

In functions.php add: <?php function ps_redirect_after_logout(){ // get the current user’s id $current_user_id = get_current_user_id(); // Get Paul $paul = get_user_by(‘login’, ‘Paul’); $paulsid = $paul->ID; // check if current user is Paul if($current_user_id == $paulsid) { wp_redirect(‘https://www.example.club/logout-page/’); exit(); } } add_action(‘wp_logout’,’ps_redirect_after_logout’); I haven’t tested this code, but something like this should be the way to … Read more

Categories customization Tags customization, logout, wp-login-form

deny IPs from wp-login using .htaccess

I think you’ve got it backwards. Try order allow,deny deny from x.x.x.x allow from all That should block all URLs from that IP. And Limit Login Attempts http://wordpress.org/extend/plugins/limit-login-attempts/ can be set to not email you with each lockout. Set the lockout timeouts to 9999 hours, too, which is the maximum setting. If things still don’t … Read more

Categories login Tags .htaccess, login, wp-login-form

Making the wordpress login form a jQuery dropdown

Try using SimpleModal Login. This should be exactly what you are looking for.

Categories jQuery Tags forms, jquery, login, wp-login-form

Load .txt file for login_message in wp-login.php

Use locate_template() if you want to use a file from your theme. include() or require() works too. Sample code, tested: add_filter( ‘login_message’, ‘wpse_73619_include_login_message’ ); function wpse_73619_include_login_message() { print ‘<pre>’; locate_template( ‘style.css’, TRUE ); print ‘</pre>’; }

Categories functions Tags functions, wp-login-form

The comment login form is visible to me but not to the user

You have commenting turned off for logged-out users. To change this setting, visit the Settings > Discussion page in your WordPress admin and uncheck the Users must be registered and logged in to comment box. Remember to update the setting by clicking the Save Changes button.

Categories comments Tags comment-form, comments, wp-login-form

How to bypass the username as a required field in registration and just use email address instead?

The registration and login forms can be customized easily below a diggest from the codex: Customizing The Registration Form Theme and plugin developers can customize WordPress’s built-in user registration page through the use of hooks. Customizing the registration form involves utilizing the following three hooks: register_form Allows rendering of new HTML form elements. registration_errors Perform … Read more

Categories user-registration Tags signup, user-registration, wp-login-form, wp-signup

WordPress custom login page

You have in many ways already answered your question: the technique described in the article is not going to be reliable. What you might not have worked out is “why”. The code uses relative URLS… <form name=”loginform” id=”loginform” action=”/wp-login.php” method=”post”> … which are nearly always unreliable in WordPress context. That won’t work if the site … Read more

Categories customization Tags customization, login, logout, wp-login-form

How do I force “users must be registered and logged in” on subsites?

Here is what you do to force registration on sub sites: /** * Require registration for comments on subsites too. */ function ourcomments_pre_option_comment_registration( $value ) { return 1; } add_filter( ‘pre_option_comment_registration’, ‘ourcomments_pre_option_comment_registration’, 10, 1 ); To only show social buttons for login something like this can be used: /** * Hide login fields. Only social … Read more

Categories login Tags login, user-registration, wp-login-form

Add text on wordpress admin login page

How about creating custom WordPress login page using <?php wp_login_form( $args ); ?> Place on the page template the title you wish and the site information then call the login form. Alternatively(I have not tested this!) adding information in the form area by passing the information you want to add in an array. It will … Read more

Categories wp-login-form Tags wp-login-form

reset password label text change

If we want to have the reset password form to look like this: then we could use the following hooks: /** * Modify the password hint */ add_filter( ‘password_hint’, function( $hint ) { return __( ‘Use upper and lower case letters, numbers, and symbols like ! ” ? $ % ^ &amp; ).’ ); } … Read more

Categories wp-login-form Tags labels, Reset, wp-login-form
Older posts
Newer posts
← Previous Page1 … Page25 Page26 Page27 … Page35 Next →
+ More

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 2026 Read For Learn
Next Page »
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress