Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8400591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:35:46+00:00 2026-06-09T21:35:46+00:00

Inside wp-login.php we have several action process: ‘logout’, ‘register’, ‘retrievepassword’, etc… and of course

  • 0

Inside wp-login.php we have several action process: ‘logout’, ‘register’, ‘retrievepassword’, etc… and of course ‘login’.

I am using the login_footer hook to add some special features right after the “login form”

add_filter('login_footer', array($this, 'special_form'));

How can I decide when just login process is running? So I can avoid show the special form in other actions (‘register’, ‘retrievepassword’, etc…).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T21:35:47+00:00Added an answer on June 9, 2026 at 9:35 pm

    Use the “login_form_login” hook.

    add_action('login_form_login', array($this, 'enable_special_form'));
    
    /*... */
    
    function enable_special_form() {
        add_action('login_footer', array($this, 'special_form'));
    }
    

    There’s also a bunch of other login_form_* hooks for other wp-login.php actions – login_form_logout, login_form_register, and so on.

    For reference, in WordPress 3.4.1 the login_form_* action is executed on line 380 of wp-login.php, and the available actions are listed on line 357.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a login class in PHP. I have the following line inside
I have following PHP code: if($_SESSION['msg']['login-err']) { echo '<p class=error>'.$_SESSION['msg']['login-err'].'</p>'; unset($_SESSION['msg']['login-err']); } Everything working
for that i have created the url rewrite in the .htaccess inside the login
I have a Facebook Login Button on a login.php page on my website, and
I have a custom class named MathLib.php and I need to use some login
I have a script that's named config.php. Inside this script are variables that contain
I have a front controller that works. I wrote a login controller called AuthController.php.
when I store data in a variable like: // inside the login page $_SESSION['username']
Solution is called Portal which holds Areas/CMS/Login folder inside it. Login controller in CMS/Controllers
For eg: http://example.com/login Here is my site once I logged inside and uses User

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.