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 can I tell if I’m on a login page? [duplicate]

Paste this function in your functions.php or a plugin file: function is_login_page() { return in_array($GLOBALS[‘pagenow’], array(‘wp-login.php’, ‘wp-register.php’)); } and then you can use it like this: if(is_login_page()){ //this is a login page }else{ //not the page you are looking for }

Categories functions Tags actions, functions, hooks, login

How can I modify the default reset (lost) password email text?

To answer your specific question, “How can I modify the default reset (lost) password email text,” the answer would be to use the retrieve_password_message filter. And ultimately that might be a way to solve your problem. But I think you need to dig a little deeper to figure out what’s really going on. In your … Read more

Categories templates Tags email, login, password, templates, wp-login-form

Detecting post type within init action

OK, let’s get some thing staight first. Here is list of actions run during typical request. It goes like this: … init … parse_request … parse_query pre_get_posts posts_selection … wp As you can see, posts are selected much later after init. To be more precise, even the request is parsed after init hook. So there … Read more

Categories ajax Tags ajax, hooks, login, redirect

Failure upgrading / updating site to WordPress 4.7

Try disabling your plugins directory. I’ve been fixing this repeatedly today. Disabling the plugin directory has, for me, allowed the page to load and complete the upgrade process. I suspect it is a specific plugin doing it but haven’t determined which yet. Update If you have W3 Total Cache 9.5.1 installed, deactivate it and try … Read more

Categories uploads Tags login, upgrade, uploads

Login in WordPress using external database data

You can override the core wp_authenticate function. You would need to create a custom plugin and declare a new version of wp_authenticate. The function accepts a username and a password and returns a WP $user object. wp_authenticate is a ‘pluggable’ function and it is found in the wp-includes/pluggable.php file.

Categories Database Tags database, login

How do I check if a post is private?

When a POST is set to private, non-logged in users will receive a 404 message. If you dump the global variable $wp_query, var_dump($wp_query); ..you will notice that no post_status is present in the parameters returned therefore using the slug (or name parameter of query_vars array for example) we can get the post status of the … Read more

Categories login Tags login, private, user-registration

Email address or username used to login in wordpress

As of WordPress 4.5, logging in with the email address instead of username has been added to core functionality. It was introduced in ticket 9568. If you are running a version of WordPress older than 4.5, the following small small plugin will work. If you don’t (or can’t) use a plugin, this should – in … Read more

Categories login Tags login

How to customize wordpress login/register pages?

Here’s my functions.php that you can copy the functions. My CSS is admittedly thrown together fast and could be neater. I’m in a hurried launch phase right now. But you can use the functions. The first adds css to your head of the login page to override the styles. The later two functions change the … Read more

Categories theme-development Tags admin, login, theme-development

custom login page redirect to logged in user profile page

If you’re using the built in function to create the login box, one of the parameters is redirect. wp_login_form function reference To get your profile link, check when you’re logged in as admin. The link is the same, but the options presented are different. Default is yoursite.com/wp-admin/profile.php

Categories login Tags buddypress, login, wp-login-form

I want to disable E-Mail verifcation / activation when a user signs up for my WordPress site

You can use plugins for do that also have a lot of plugins for this purpose below some of them may be useful for you Remove Email Verification Plugin BP Disable Activation Plugin REMOVE EMAIL VERIFICATION

Categories login Tags login, user-registration, wp-login-form
Older posts
Newer posts
← Previous Page1 … Page150 Page151 Page152 … 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