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

login

Disable WordPress 3.6 idle logout / login modal window / session expiration

It finally hit me that javascript would be behind the interim login modal behavior, and that gave me a new direction in my search. I have disabled the new login popups by adding the following to my theme’s functions.php file: // Disable login modals introduced in WordPress 3.6 remove_action( ‘admin_enqueue_scripts’, ‘wp_auth_check_load’ ); If anyone’s interested … Read more

Categories login Tags authentication, login, session, wp-login-form

How do I change the language of only the login page?

This will need to go in a plug-in, just put the following inside a file (login-languge.php) in wp-content/plugins/ /* Plugin Name: Log-in Language Plugin URI: http://wordpress.stackexchange.com/questions/72692/how-do-i-change-the-language-of-only-the-login-page Description: Changes the language for log-in/register screens only Author: Stephen Harris Author URI: http://stephenharris.info Version: 1.0 License: GNU GPL 2 */ add_action(‘plugins_loaded’, ‘wpse72696_login_language_init’); function wpse72696_login_language_init(){ if( in_array( $GLOBALS[‘pagenow’], array( … Read more

Categories login Tags language, login, multi-language, wp-login-form

How to check in timber if user is loggedin?

Found it already, to do this you can use the ‘user’ object: {% if user %} Hello {{ user.user_nicename }} {% else %} you are not loggedin {% endif %}

Categories login Tags login

Make my wordpress blog remember my login “forever”

I think I’ll wait for such a plugin Save this code in a file named set-cookie-expire.php and upload it your plugins folder. The plugin will give you the ability to set a time (in days) that cookies expire within the WordPress Settings admin. <?php /** * Plugin Name: Set Cookie Expire * Plugin URI: http://wordpress.stackexchange.com/a/11991/1685 … Read more

Categories login Tags login

Login members using web services

If I were you, I would look at solutions with Federated Identities. For example OpenID solutions. This link has a lot of examples of implementation on PHP. Advantages: open source, secure protocols, clear documentation

Categories login Tags authentication, login

What are the differences between wp_users and wp_usermeta tables?

wp_users is the primary table, with a fixed list of columns. wp_usermeta is an additional table for storing arbitrary information (custom fields). The wp_users table already has a user_email column, so I don’t know why the plugin uses wp_usermeta. The best person to ask would be the plugin author himself.

Categories login Tags email, login, wpdb

What exactly is ReAuth?

ReAuth=1 is required when your login Cookies are no longer valid, WordPress will force validation for your browser. if ( $force_reauth ) $login_url = add_query_arg(‘reauth’, ‘1’, $login_url); Add reauth=1 flag to login url when auth_redirect() redirects to wp-login.php after the auth cookie fails validation wp-login.php clears cookies and forces log in if reauth=1. If reauth=1 … Read more

Categories login Tags authentication, login

wp_signon() does not authenticate user guidance needed

finally this is working for me on my local WP installation after replacing – with _ from input attribute name and using full php start tags <?php instead of <? the final code is here copy and paste into your template. <?php if ( isset($_POST[“user_email”]) && isset($_POST[“user_password”]) ) { $user_login = esc_attr($_POST[“user_email”]); $user_password = esc_attr($_POST[“user_password”]); … Read more

Categories login Tags login

Redirect user using the ‘wp_login_failed’ action hook if the error is ’empty_username’ or ’empty_password’

WordPress handles login failed in two ways: If it is a bad credential, and both username and password have a value, then this action can be captured by wp_login_failed If both, or one, of the options are empty, then WordPress generates the error object as the first parameter in the authenticate filter; it does not … Read more

Categories login Tags front-end, login

Prevent wp_login_form() from redirecting to wp-admin when there are errors

just add the following code to your function.php. it will redirect back user from where the login form is submitted. add_action( ‘wp_login_failed’, ‘my_front_end_login_fail’ ); // hook failed login function my_front_end_login_fail( $username ) { $referrer = $_SERVER[‘HTTP_REFERER’]; // where did the post submission come from? // if there’s a valid referrer, and it’s not the default … Read more

Categories login Tags login, wp-login-form
Older posts
Newer posts
← Previous Page1 … Page71 Page72 Page73 … Page75 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