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

Redirect non-admin after login, and in url – /admin

All functions place in functions.php of your theme. And create redirect on template_redirect hook. add_action(‘template_redirect’, ‘make_redirect’); function make_redirect() { if ( ! is_admin() && ! current_user_can( ‘administrator’ ) ) { wp_redirect( ‘https://google.com’ ); } }

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

I want to signin from first wordpress site to other wordpress website without registration..without using network mode

I want to signin from first wordpress site to other wordpress website without registration..without using network mode

Categories single Tags signup, single, single-sign-on, wp-login-form

How to login to wordpress via Cpanel

WordPress login page exist in yoursite.com/wp-login If it doesn’t exist download wp-login.php (you can google for it) and login to your cpanel via yoursite.com/cpanel and locate public_html/ folder or the folder where you install wordpress to and upload it.

Categories login Tags login, wp-login-form

WordPress reCAPTCHA Problem

The host had to disable a line in the php ini file in the root public_html folder. Looks like they enable it by default, but forgot to change then when it got depreciated.

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

custom login query for custom login form?

I’d suggest to read how the filters and hooks work inside WordPress here, that’s the easiest way (and the recommended one) to add/alter the site functionality. The wp_insert_user() function returns the new created user ID so I wouldn’t use a custom query for inserting user records since you can use add_user_meta(): see the docs here … Read more

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

Custom password set/reset link in same URL format as default does’t work

The error (flagged in debug) was that I was using $user_data in the line $key = get_password_reset_key( $user_data ); instead of $user. Works now on WP 4.9.6.

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

Custom transactional emails on user signup with wp_add_user

Sure! Use the user_register filter (see here https://codex.wordpress.org/Plugin_API/Action_Reference/user_register ). You can call a custom function that will ‘fire’ after the user is added to the database. Your function would send out an email, perhaps. Place the filter in your Child Theme’s function.php file (you want to use a Child Theme so that your changes don’t … Read more

Categories forms Tags forms, wp-login-form

Login redirects to home page and doesn’t log in

Login redirects to home page and doesn’t log in

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

How to change form action of wp-login page with a function

Follow standards instead of ugly solutions. Use WP filter (put inside functions.php): add_filter( ‘site_url’, ‘my_url_modifier’, 10, 4 ); function my_url_modifier( $url, $path, $scheme, $blog_id) { if($url==’http://mywebsite.com/wp-login.php?action=lostpassword’) return ‘http://your_link..’; else return $url; } p.s. You should add other links there link example. Also, you can sanitise further parameters, like : if ($path==’wp-login.php’)….

Categories functions Tags actions, forms, functions, url-rewriting, wp-login-form

WordPress cookie issue on login: “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”

The problem was some empty spaces in custom plugin outside of <?php … ?> enclosure. This is not a specific issue for cookies and the error is misleading. My custom plugin was only a single php file with 2 extra empty lines. The existing popular question about the same error message doesn’t include any answers … Read more

Categories headers Tags cookies, headers, wp-login-form
Older posts
Newer posts
← Previous Page1 … Page8 Page9 Page10 … 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