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

WordPress registration message

This message is not part of the WordPress core. I confirmed this suspicion by searching for the message within the WordPress core files. When it was not found, I then searched the message using a search engine. It appears that you are using the New User Approve Message plugin. This message is defined in new-user-approve/includes/messages.php#L33 … Read more

Categories login Tags login, user-registration

Cannot access admin panel

The way you describe it, it sounds as if WordPress was installed to your root directory. That however doesn’t explain why http://localhost:8888/wp-admin/ doesn’t work, unless you renamed the directory..? Try accessing http://localhost:8888/wp-login.php

Categories admin Tags admin, login

Avoid to load default WP styles in login screen

Using wp_deregister_style( ‘login’ ) to remove the login styles will still result in a 404’d request for the login CSS file. However, if you re-register the login style after deregistering it you can prevent the unwanted request. add_action( ‘login_init’, function() { wp_deregister_style( ‘login’ ); wp_register_style( ‘login’ ); } ); This will leave you with a … Read more

Categories login Tags css, login, wp-enqueue-style, wp-login-form, wp-register-style

How to use current_user_can()?

Probably because the global $current_user isn’t valid yet, which is used by current_user_can(). However, you can use this instead; if ($user->has_cap(‘manage_options’)) { return admin_url(); }

Categories login Tags login

Editing ‘Password Reset’ E-mail

WordPress uses custom wp_mail function, so you won’t find it, if you’ll search for mail. Just take a look at line 248 of wp-login.php file: http://core.trac.wordpress.org/browser/branches/3.5/wp-login.php#L248 You should find retrieve_password_message filter call there. This is the filter that returns the content of reset password message. You should also check the implementation of wp_mail function, because … Read more

Categories filters Tags email, filters, login, password

Is it possible to sign in with user_email in WordPress?

Here’s how we do it: $user = get_user_by(’email’, $email); if (wp_check_password($password, $user->user_pass, $user->ID)) { // Login successfull, redirect if needed wp_set_auth_cookie($user->ID); } Assuming of course that you got the $email and the $password variables from a POST request or something 🙂

Categories login Tags forms, login, users

Why does WordPress hide the reset password key from the URL?

To be honest? It’s a little bit hard to say… This behavior was introduced in 3.9.2 (which is security release). Here’s the bug in Trac: 29060: Don’t pass around the resetpass key, but there isn’t much info on why was it introduced in the bug report. Is it for security reasons? Most probably. But does … Read more

Categories login Tags login

Change the login button on the login page

The “Log In” string is passed to the translation function, and you can filter that. To prevent needing to filter every little string, you can activate this filter right before the login form is printed. add_action( ‘login_form’, ‘wpse17709_login_form’ ); function wpse17709_login_form() { add_filter( ‘gettext’, ‘wpse17709_gettext’, 10, 2 ); } function wpse17709_gettext( $translation, $text ) { … Read more

Categories customization Tags core, customization, login

Allow up to 5 Concurrent Login Sessions

This question made me really interested. Took about 5 hours of my Saturday to create the full solution 🙂 Plugin Limit Login Sessions It doesn’t provide a settings page yet, so all options are currently hard coded. The plugin implements the following (according to OP): A user can have a maximum of 5 login sessions … Read more

Categories users Tags login, session, users

How to change the wp-login.php page title?

It looks like it’s not easily accessible as it’s displayed as src: <title><?php echo get_bloginfo( ‘name’, ‘display’ ) . $separator . $title; ?></title> where the separator is: $separator = is_rtl() ? ‘ &rsaquo; ‘ : ‘ &lsaquo; ‘; and the $title part comes from: login_header( $title=”Some title” , … ); But it looks like you’ve … Read more

Categories PHP Tags filters, login, php
Older posts
Newer posts
← Previous Page1 … Page155 Page156 Page157 … 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