BUDDYBOSS WEB

Your community, courses and memberships on your own website.

BUDDYBOSS APP

Your own branded app on iOS and Android.

DONE FOR YOU

We build, launch and run it for you.

BuddyBoss website and mobile app

Web + App Done For You

$4,999 flat

Web Scale + Done For You Web

App Launch + Done For You App

PRICING

Web Pricing

Launch, Scale and Done For You Web.

From

$199

first year

App Pricing

Solo, Launch and Done For You App.

From

$499

first year

SITE + APP

Web + App Done For You

Your site and your app, built and run for you.

$4,999

flat, never rises

How to Hide WordPress Login Error Messages

Updated

Introduction

WordPress displays error messages on the login page, such as incorrect username or password notices. BuddyBoss does not include a built-in option to hide these messages. If you prefer a cleaner login experience or want to prevent exposing login feedback for security reasons, you can hide these messages using a custom function. This guide explains how you can hide WordPress login error messages.

Custom Workaround

Before proceeding, make sure you have a complete site backup.

  1. Go to Appearance > Theme Editor in your WordPress admin dashboard.
  2. Under Select theme to edit, choose your active theme (preferably BuddyBoss Child Theme), then click Select.
  3. From the Theme Files list, click Theme Functions (functions.php).
  4. Paste the following code just before the closing PHP tag (?>):

function no_wordpress_errors() {

    return ‘ ‘;

}

add_filter( ‘login_errors’, ‘no_wordpress_errors’ );

function the_dramatist_custom_login_css() {

    echo ‘<style type=”text/css”>

        div#login_error { 

            display: none; 

        }

    </style>’;

}

add_action( ‘login_head’, ‘the_dramatist_custom_login_css’ );

  1. Click Update File to save your changes.

Note: Modifications are typically considered custom work, but we are making an exception in this case. Please review the BuddyBoss Support Policy.

Troubleshooting and FAQs

Q: I still see login error messages.
A: Clear your browser cache and any caching plugin, then reload the login page.

Q: Does this affect the login process itself?
A: No. This only hides the error messages visually and does not change how login authentication works.

Q: Is this recommended for security purposes?
A: Hiding error messages can reduce information exposure, but it should be combined with other security measures like strong passwords and rate limiting.

Q: Can I revert this change easily?
A: Yes. Remove the code from functions.php and save the file.

Q: Who can I contact for further assistance?

Was this article helpful?

Subscribe to Our Newsletter

This field is for validation purposes and should be left unchanged.
This field is hidden when viewing the form

Can’t find the answer you’re looking for?

Our support team is here to help with anything the docs don’t cover.