Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

login

Keep user session with custom implementation of user login

August 5, 2022 by Magenaut

To implement custom user login functionality outside of the wp-admin area, wp_signon() function is the way to go. This function accepts an array which may contain the “remember” key with a boolean value to determine if the user shall stay logged in or not during the following 14 days.

Categories Q&A, Wordpress Tags login Leave a comment

Input sanitation

August 5, 2022 by Magenaut

I have a question regarding a wordpress site I have recently developed for a client. I have only until now developed a site for small clients that just require personal websites, however this client has asked me to redeveloped his site as the current one has alot of security issues. Anyway I have created the site and shown it to him and he has asked if I can ‘apply input sanitation so special characters like @,&,-,+,% are not allowed’ to the login field.

Categories Q&A, Wordpress Tags login, sanitization, security Leave a comment

How to block specific user id in custom login form?

August 5, 2022 by Magenaut

I’ve been looking for this method for weeks, but still can’t find it. There are so many sites that discuss how to create a custom login page, but they don’t cover how to block a specific id like the one I was looking for.

Categories Q&A, Wordpress Tags customization, id, login, php, users Leave a comment

How can we redirect user from login page to home page if user is logged in WordPress?

August 5, 2022 by Magenaut

I have just installed WordPress locally in my computer and run the website successfully.
I want to achieve following: when logged-in user tries to access wp-login.php or register page, it should be automatically redirected to home page.

Categories Q&A, Wordpress Tags login Leave a comment

Log out without confirmation request (nonce)

August 5, 2022 by Magenaut

I have a WordPress site with WooCommerce. I would like to add a Logout option to the Menu that logs out the user without asking for confirmation.

Categories Q&A, Wordpress Tags login, logout, nonce, php Leave a comment

Login WP – Connect single field to an external api

August 5, 2022 by Magenaut

I made a plugin to allow wordpress login with external api.

Categories Q&A, Wordpress Tags api, custom-field, login Leave a comment

how to use reCaptcha v3 in wordpress custom login form?

August 5, 2022 by Magenaut

I tried to create a custom login form and custom register form by ajax. I have been successful to make that and you can see my code below for custom login form.

Categories Q&A, Wordpress Tags ajax, captcha, forms, login, wp-login-form Leave a comment

How show login popup to guest only and redirect logged in users?

August 5, 2022 by Magenaut

I have a menu item “Checkout”. When clicked it links to the login popup prompting users to register/login/continue as guest and from there to checkout.
How can I make that same button redirect to the checkout page if a user is already logged in?
Using ELementor and Astra theme
Thanks!

Categories Q&A, Wordpress Tags login Leave a comment

I want to disable login of admin (/wp-admin) with email and make it accessible only with username

August 5, 2022 by Magenaut

I want to do it as a security precaution. I’ve already taken other actions. But I want to be able to login only with my admin username. Is there a way to do that or even a plugin?

Categories Q&A, Wordpress Tags admin, login, security, wp-admin Leave a comment

Login without Password

August 5, 2022 by Magenaut

In WordPress I need to add a filter where user role subscriber just put his email address in form to login, no need for password, just check if the email is for a subscriber and redirect him to a specific page, I tried many solutions but I didn’t get it,
Thanks

Categories Q&A, Wordpress Tags login Leave a comment
Older posts
Newer posts
← Previous Page1 … Page5 Page6 Page7 … Page11 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress