The login page is a horrible mess mixing functions with output the way it does. It makes projects like your unnecessarily difficult. It is actually better now that is used to be.
You can cheat around the problem with output buffering:
ob_start();
include('wp-login.php');
ob_end_clean();
Of course, the page still gets generated so it is consuming resources and not especially efficient, but you do get access to those functions. The downside– potentially a huge downside– is that that page does what it does in the background anyway. That could cause trouble if you aren’t careful.
Related Posts:
- Disable user registration password email
- Missing URL in password reset email
- Customizing lost password email
- Reset Password – change from name and email address
- How can I modify the default reset (lost) password email text?
- Locked out of my own blog and password reset not working
- Change Password notification text on mail
- Emailing passwords: Setup installed on home server using XAMPP
- Resend password chosen by WP administrator? [duplicate]
- Changed my email. Locked out
- Changing old email to new email, lost the password
- Why would it take four reset password attempts to finally get the e-mail?
- Sending a password reset link
- Can’t change headers / From for wp_mail()
- forgot password page with expiry link email of 60 minutes
- What is the difference between ports 465 and 587?
- User Without Email?
- Allow Duplicate Email Address for Different Users
- How do i send mail with custom Form Data using WordPress
- WP Cron emails not working
- Few chars getting replaced with ‘=’ in mail content in wp_mail()
- Need to manually regsiter user, send the password and retreive their user ID
- WooCommerce lost password reset flow not working with SendGrid (redirect loop)
- On form submission how to send 2 email to different users
- email wordpress users using BCC
- email sends from [email protected] even though I have it set to something else
- Joining confirmation email
- How to setup SMTP for only one specific wp_mail()
- Email notification after registration in WordPress
- WordPress E-mail Config
- Right practice to edit WP reset password email
- wordpress do not let user registered with info@ email and other reserved emails to get registered by users
- Password reset – Disabled for LDAP accounts
- Limit number of emails per second
- Change Password Confirmed Email Text
- Throttling email frequency
- WordPress unable to send mail
- Not able to send links in email after setting header
- 2 Email addresses for each user
- Deep customization of wp-login.php
- wp_mail_from is ignored
- PAGE Specific Email Notifications
- How can I change the email sender name from wordpress to (myblogname) on the “lost password” email?
- How to edit the WordPress e-mail that gives the user their password? [duplicate]
- Do action for only switch status for publish_post
- Enqueue stylesheet in plugin for wp-login.php
- Change the Sender(not From) on wp_mail() function [closed]
- How can I change the email that is inside the default email texts of wordpress?
- Is Postfix required for WordPress contact forms in general?
- Adding “reply-to” in the email [closed]
- Programming WordPress to Send an Email on Registration Form Submit?
- How do I troubleshoot registration/password email errors?
- Does WordPress require port 25 for email?
- Change email address change notice from WordPress
- Is there a plugin that will let you do actions by mail? [closed]
- Send email daily using `wp_mail`
- How to send confirmation email after payment made via paypal?
- WP stopped emailing notifications about new comments
- How to prevent the scheduling of the same event on the same day
- How to change the format of the subcriber email
- wp_mail() won’t send mail when it’s a variable, only when hard coded
- WordPress and IPN problem
- Send email for confirmation during user registration
- I just had an email from wordpress. what does it mean?
- About Custom Email Template Design Responsive
- How to recover one of WP email addresses?
- After limiting the access to my wp-login.php by IP through .htaccess, all my password-protected posts stopped working. What’s the best solution now?
- Custom Password Reset
- Send email using wordpress plugin on behalf of someone with their permission
- How to apply a function to the value $email of get_user_by to override email_exists?
- Login form does not store/remember/suggest users password
- New user notification issue
- E-Mail Notification on post edit
- I need to verify emails when users signup
- Why do WordPress emails to multiple recipients include \n in the list
- Where is the account email address located?
- Custom password set/reset link in same URL format as default does’t work
- SMTP not working for Comments Email Notifications
- wordpress wp mail not changing sender mail
- How can I send an email 24 hours after first email?
- WordPress doesn’t send SMTP email even by phpmailer hook
- Whitelist email sent by WordPress
- Asynchronous emailing
- Can I use core passworded page/post functions outside of wp-login.php?
- Send Custom Post Notification to Followers
- Get emails of register user in WordPress
- Mail function not working with user accounts
- Create WP account from an external email form submission?
- Display “a generated one [avatar] based on their e-mail address”
- Allow users to register as a higher role than default with code
- Can wordpress users check GMAIL (G Suite) inbox & send email from their membership account on WordPress? [closed]
- Send email once every 12 months to a particular user [closed]
- Dynamic Email Handler with ‘header (“Location: …’
- Having Issue on Receiving Emails From @Gmail.com or @Yahoo. in WordPress Using PHP Mail Function
- Fighting Spam – What can I do as an: Email Administrator, Domain Owner, or User?
- Where does email sent to *@example.com go? [closed]
- How to send emails and avoid them being classified as spam?
- How to change the WordPress email icon?
- Is there a wordpress function restrict public email id for registration like as is_email()
- What’s the optimum way to collect users’ email id?