This guide explains how to hide PHP warning notices from your WordPress dashboard. However, at DomainsFoundry, we strongly recommend upgrading to the latest PHP version first to ensure your website runs faster, safer, and more reliably.

We Recommend Upgrading PHP First

Before hiding PHP warnings, it’s best to upgrade to the latest PHP version. Running a modern PHP version improves your site’s performance, security, and compatibility.

Benefits of Upgrading PHP

  • Better performance – Your WordPress website loads faster and handles more visitors.
  • Enhanced security – Protects your site from known PHP vulnerabilities.
  • Improved compatibility – Works seamlessly with the latest versions of WordPress, themes, and plugins.

How to Upgrade PHP in DomainsFoundry Hosting

Upgrading PHP is simple with DomainsFoundry Hosting:

  1. Log in to your DomainsFoundry Control Panel.
  2. Go to your hosting plan and click Select PHP Version.
  3. Choose the latest available PHP version.
  4. Click Apply or Save Changes.

Your website will start using the new PHP version immediately.

For detailed steps, see our guide: How to change PHP version on shared-hosting with cPanel

When You Can’t Upgrade PHP

Sometimes upgrading isn’t possible right away, for example, if a specific theme or plugin doesn’t yet support newer PHP versions. In that case, you may wish to hide PHP warning notices in your WordPress dashboard while you work on updates.

Option 1: Hide the WordPress Dashboard PHP Warning (Code Method)

Add this code to your theme’s functions.php file or a custom plugin:

/* Hide PHP update notice in WordPress dashboard */
add_action('admin_init', function() {
    remove_action('admin_notices', 'wp_dashboard_php_nag');
});

Option 2: Hide Site Health Status via Screen Options

If you simply want to hide the Site Health Status (which can display PHP-related notices) from your WordPress dashboard:

  1. Go to your WordPress Dashboard.
  2. Click the Screen Options tab at the top right corner.
  3. Uncheck the box next to Site Health Status.

This will hide the Site Health widget and with it, any PHP version or update warnings.

Note: This only hides the widget from view. It does not disable the Site Health feature or resolve PHP-related issues.

Need Help Updating Your WordPress Site?

If you’d like assistance updating your theme or plugin to work with the latest PHP version, DomainsFoundry offers expert WordPress development and support services.
Our team can help make your website fully compatible, fast, and secure.

Contact DomainsFoundry Support