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

How do I make my site publicly viewable? Everything redirects to wp-admin

The pages are published, and not private. I was quite baffled, because the plugin set is the same as several other sites I’m working with, and this was the only one that was having issues. However, after deactivating the plugins, I noticed that one of them, which requires a license key for updates, hadn’t been … Read more

Categories login Tags login

how to restrict user login whenever if a user puts on hold by editing wp-login action?

function myplugin_authenticate_on_hold($user) { // username and password are correct if ($user instanceof WP_User) { $on_hold = get_user_meta($user->ID, ‘is_on_hold’, true); if ($on_hold) { return new WP_Error(‘on_hold_error’, ‘You are on hold’); } } return $user; } add_filter(‘authenticate’, ‘myplugin_authenticate_on_hold’, 21); The priority needs to be 21, as wp_authenticate_username_password and wp_authenticate_email_password are priority 20. They return an object of … Read more

Categories login Tags login, wp-login-form

Can’t login to Dashboard when changing site URL to HTTPS

Login to your cpanel and go to php my admin, then find your db and there table wp_options, inside you will see URL of your website,2 fields. Change it how you like.

Categories wp-admin Tags http, https, login, wp-admin

How to edit .htaccess to change site’s login url?

Easy: just add this to your .htaccess file: RewriteRule ^banana$ http://example.com/wp-login.php [NC,L] Now http://example.com/banana.php is your login page.

Categories login Tags .htaccess, login

Deny a user role to log in after register

What you want to do is hook into the authenticate hook, check if the user has the pending role, and if so, throw an error. //* Add filter to the authenticate hook add_filter( ‘authenticate’, ‘wpse_263762_authenticate’, 20, 3 ); function wpse_263762_authenticate( $user, $username, $password ) { //* Check if the user has the pending role if( … Read more

Categories login Tags login, user-roles

Cannot login to ADMIN even after changing password in phpmyadmin

From the WP Codex: Begin by logging into phpMyAdmin and clicking databases. A list of databases will appear. Click your WordPress database. All the tables in your database will appear. If not, click Structure. Look for wp_users in the Table column. Click on the icon for browse. Locate your Username under user_login Click edit (may … Read more

Categories plugins Tags database, login, plugins

Redirect user after login through woocommerce login page to page with his/her username?

This worked perfectly: add_filter(‘woocommerce_login_redirect’, ‘custom_wc_login_redirect’, 10, 3); function custom_wc_login_redirect( $redirect, $user ) { $redirect = site_url() . ‘/accounts/’ . $user->user_login; return $redirect; } Thanks everyone.

Categories woocommerce-offtopic Tags login, redirect, woocommerce-offtopic

Is it safe to manually sign a user in using AJAX?

Assuming you do not do stupid things, and use properly the relevant API, an AJAX login form can be as secure as the “core” login form. The way you transfer the data is not very important by itself. Even HTTP, although people and google will claim as being insecure, can probably be secure enough with … Read more

Categories ajax Tags ajax, login, security

Force users to register in order to view website [duplicate]

I use the WP-Members plugin (https://wordpress.org/plugins/wp-members/ ). It allows you to block/not block by default, and block/unblock individual pages. Works well for me. There are similar plugins available.

Categories login Tags facebook, login, user-registration

Where is the query and form in wp-login.php?

The hook you will probably be most interesting in is wp_authenticate. Codex: This action is located inside of wp_signon. In contrast to the wp_login action, it is executed before the WordPress authentication process. That hook and wp-signon are defined in wp-incldues/user.php line 10 But wp-includes/pluggable.php has wp_authenticate() and it can be overridden. It also provides … Read more

Categories login Tags login
Older posts
Newer posts
← Previous Page1 … Page121 Page122 Page123 … Page164 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