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 to create a custom shortcode for custom login form?

To get the URL for lost password use wp_lostpassword_url() Reference: wp_lostpassword_url()

Categories shortcode Tags login, shortcode

how redirect users to custom login page when “login to reply” is clicked? [duplicate]

You need to redirect everytime WordPress looks for wp-login.php. You can do the same by using the below in your active theme’s functions.php file. function redirect_login_page(){ // Store for checking if this page equals wp-login.php $page_viewed = basename( $_SERVER[‘REQUEST_URI’] ); // permalink to the custom login page $login_page = get_permalink( ‘CUSTOM_LOGIN_PAGE_ID’ ); if( $page_viewed == … Read more

Categories users Tags login, redirect, users

Sign in with social media accounts without creating a WP account [closed]

Try the Jetpack Comments system, included in the Jetpack plugin. http://jetpack.me/support/comments/

Categories login Tags login, social-connect, user-access

Processing a login/register form before shortcodes are rendered?

after_setup_theme should not execute after the shortcodes process. Shortcodes process when the post body renders. after_setup_theme runs well before that. Your analysis of the problem is incorrect. This looks like a variable scope problem to me. None of the variables inside your custom_login function are going to be accessible outside that function. Their “scope” is … Read more

Categories shortcode Tags login, shortcode

loginout function customization

You might be looking for a logged in conditional. From the WP Codex, you might be able to try in your theme (untested): <?php if ( is_user_logged_in() ) { get_currentuserinfo(); echo ‘Logged in as ‘ . $current_user->user_firstname; } ?> EDIT After consulting the WP Codex on the topic, I was able to display my user’s … Read more

Categories functions Tags customization, functions, login, users

One time login on 2 different WordPress sites

Just wanted to add my own experience to this thread. I’ve tried many different configurations of WordPress cookie constants in wp-config without any luck. I’m setup in the same way as described by the OP using custom_user_table and meta_table. I’ve found the session information does actually translate across different pages if you use COOKIE_DOMAIN as … Read more

Categories login Tags cookies, login, session

How to redirect user after login to the page called by his first name?

Try the following code in your functions.php: function my_login_redirect( $redirect_to, $url, $user ) { global $user; if( isset( $user->roles ) && is_array( $user->roles ) ) { //check for admins if( in_array( “administrator”, $user->roles ) ) { // redirect them to the default place $redirect_to = admin_url(); } else { $redirect_to = site_url( “https://wordpress.stackexchange.com/” . $user->user_login … Read more

Categories redirect Tags login, redirect

Password recovery URL has error – but not found in code or db

It is possible that the home url for your site is being overridden in your wp-config.php file, I would make sure the missing colon isn’t originating from there.

Categories login Tags login, password

Can user meta be shown or hidden depending on user logged in status?

The way you suggest doing this, it won’t ever be secure. If I understand you, just disabling Javascript would spoil the security. What you’d need to do is run a script that uses an AJAX request to query for and then add data to the page, but only if the user is logged in. That … Read more

Categories jQuery Tags jquery, login, user-meta, users

Removing “public” user registration without completely turning it off?

There’s a “Membership” setting under Settings > General. By disabling “Anyone can register” the public-facing registration page will be effectively removed, along with the ‘register’ button. The API, however, will still be usable (e.g. wp_create_user().) On a side note, you mention NOTE: I’m working in a plugin already, so I cannot just use another plugin … Read more

Categories login Tags login, user-registration
Older posts
Newer posts
← Previous Page1 … Page69 Page70 Page71 … 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