Skip to content

Magenaut

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

login

How to keep always logged in development environment

August 4, 2022 by Magenaut

I have a little non-standard WP dev environment, I use one WP core for all my projects and switch each project in core’s wp-config.php just changing the $project variable (e.g. proj1, proj2, example…). Projects and core are separated and each project has its own DB, wp-content folder, wp-config-dev.php (DB credentials and table prefix), and wp-config.php (usual wp-config that I deploy on the server).

Categories Q&A, Wordpress Tags login, single-sign-on, wp-login-form Leave a comment

Why is it that not all users have a ‘session_tokens’ meta_key record in the usermeta table?

August 4, 2022 by Magenaut

I’ve created my own code based on this good article – https://shocksolution.com/2019/04/16/find-last-login-time-for-wordpress-users-in-the-sql-database/ to get the last login date for a user.

Categories Q&A, Wordpress Tags database, login, users Leave a comment

Enqueue script globally

August 5, 2022August 4, 2022 by Magenaut

This only works for admin dashboard.

Categories Q&A, Wordpress Tags customization, login, plugin-development, wp-admin, wp-enqueue-script Leave a comment

How to fix blocked cookies error that doesn’t let me log into wp-admin?

August 5, 2022August 4, 2022 by Magenaut

I have edited functions.php file recently and also added a new folder to themes folder for custom endpoint and after that I wasn’t able to login to wp-admin. I deleted the folder and code line from functions.php but it still doesn’t let me to login. I have cleared all cache and cookies but still I get the same error 🙁

Categories Q&A, Wordpress Tags cookies, errors, login, multisite, site-url Leave a comment

Having trouble creating two shortcodes, one for logged in user and one for visitors

August 5, 2022August 4, 2022 by Magenaut

So I’m trying to create a code (in functions.php) that displays a widget content, from shortcode, based on whether the user is logged in or logged out (visitor). I am successful in displaying content for logged in users, but not for visitors, as I need everything to happen in the same widget. The approach I’m trying is by using two different shortcodes, like this:

Categories Q&A, Wordpress Tags customization, functions, login, php, shortcode Leave a comment

Check if wp-login is current page

August 5, 2022August 4, 2022 by Magenaut

How can I check if the current page is wp-login.php or wp-signup.php ?

Categories Q&A, Wordpress Tags conditional-tags, login, pages, user-registration Leave a comment

Can’t log in: “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”

August 4, 2022August 3, 2022 by Magenaut

After a server move, I’m unable to log in to my site. I get the “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.” error when I try submitting the login form.

Categories Q&A, Wordpress Tags cookies, login, migration Leave a comment

Redirect user to original url after login?

August 4, 2022August 3, 2022 by Magenaut

I have a function that redirects users to the login page (home) if they’re trying to access any other page without being logged in, here’s how it works:

Categories Q&A, Wordpress Tags login, redirect, urls Leave a comment

Can I programmatically login a user without a password?

August 4, 2022August 3, 2022 by Magenaut

I’m manually creating users programmatically, and I want to sign in the newly created user. WP makes it easy to access the hashed password, but not the plaintext version. Is there a way to use wp_signon() without the plaintext password?

Categories Q&A, Wordpress Tags authentication, login Leave a comment

Is there any way to rename or hide wp-login.php?

August 4, 2022August 3, 2022 by Magenaut

Any way to change the wp-login.php url? It seems insecure that everyone that’s ever used WordPress could easily see if your site is using it, and get right to the login page.

Categories Q&A, Wordpress Tags login, security Leave a comment
Older posts
Newer posts
← Previous Page1 … Page6 Page7 Page8 … 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