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

A truely custom login page?

As @Tomas Cot says, this page has everything you’re looking for: https://codex.wordpress.org/Customizing_the_Login_Form Specifically, this section is what you’re looking for: Make a Custom Login Page So far you’ve seen how to customize WordPress’ built-in login page. You can also create your own custom login Page by using the wp_login_form function in one of your WordPress … Read more

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

Enqueue stylesheet in plugin for wp-login.php

You can do this two way.But I prefer to go for the second way.You need to put this code in your plugins file. First way: function my_loginlcustomization() { echo ‘<style type=”text/css”> h1 a { background-image: url(‘ . plugin_dir_url( __FILE__ ).’/login/logo.png) !important; } </style>’; } add_action(‘login_head’, ‘my_loginlcustomization’); Second Way(I prefer): function my_loginlcustomization() { wp_register_style(‘custom_loginstyle’, plugins_url(‘/css/login.css’, __FILE__)); … Read more

Categories plugins Tags headers, plugins, wp-enqueue-style, wp-login-form

Is wp_login_form secure on a non secure page?

It doesn’t matter what function you use to generate the form markup, if you write the code by hand, or if it’s in a modal or not. For it to be secure, you absolutely need an SSL certificate.

Categories login Tags login, security, wp-login-form

Accessing my site using wp-admin does not load

Sounds like a theme or a plugin is causing the problem. Try renaming the wp-content/plugins folder to quickly disable all plugins and then try logging in. Add the plugins back into the wp-content/plugins folder to find the culprit. If you have access to the error log file (assuming the site is not that busy), then … Read more

Categories errors Tags errors, wp-login-form

Custom Login Process

For anything that deals with logins a server-side solution is more secure and compatible (i.e. if they don’t have JS enabled, they still get the pared-down version). It’s also generally safer to use existing functionality with plugins sprinkled in sparingly so that others who keep up with Core modifications can maintain the code. You could … Read more

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

force login and redirect to custom login page

If you’re willing to try another plugin, I suggest using Force Login. It’s a simple lightweight plugin that will require all visitors to login. Once the plugin is installed and activated, add the following code to your functions.php file to change your site’s login URL to point to your custom login page: function my_login_page( $login_url, … Read more

Categories wp-redirect Tags wp-login-form, wp-redirect

How to set where user is redirected to after logging in at wp-login?

Filter ‘login_redirect’. Sample code, not tested: add_filter( ‘wp_login’, ‘wpse_78150_login_redirect’ ); function wpse_78150_login_redirect( $url ) { # uncomment the next line for debugging # var_dump( wp_get_current_user() ); exit; if ( ! current_user_can( ‘custom_role’ ) ) return $url; return admin_url(); }

Categories wp-admin Tags user-roles, wp-admin, wp-login-form

Redirect outside WP after login

Finally it works! What I was doing wrong is putting the code in the WP functions.php file, and not in my custom theme functions.php file. Thanks all!

Categories redirect Tags redirect, wp-login-form, wp-redirect

Blank page for wp-admin after i uploaded the website from my localhost to the live server

Try this in your functions.php file: //fix for cookie error while login. setcookie(TEST_COOKIE, ‘WP Cookie check’, 0, COOKIEPATH, COOKIE_DOMAIN); if ( SITECOOKIEPATH != COOKIEPATH ) setcookie(TEST_COOKIE, ‘WP Cookie check’, 0, SITECOOKIEPATH, COOKIE_DOMAIN);

Categories wp-admin Tags wp-admin, wp-login-form

Redirect wp-login

Try something similar to this: function is_login() { return in_array( $GLOBALS[‘pagenow’], array( ‘wp-login.php’, ‘wp-register.php’ ) ); } function redirect_login() { if ( is_login() ) { wp_redirect(‘http://example.com/customloginpage’); } } add_action( ‘init’, ‘redirect_login’ ); You’ll need to modify the URL it redirects to, and test thoroughly.

Categories login Tags login, wp-login-form, wp-redirect
Older posts
Newer posts
← Previous Page1 … Page19 Page20 Page21 … Page34 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
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 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