Skip to content

Instantly share code, notes, and snippets.

@maddisondesigns
Last active May 7, 2019 08:03
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save maddisondesigns/7ed10719d2047e387b76d311ca73362d to your computer and use it in GitHub Desktop.
Hide the progress count on the Site Health screen
<?php
/**
* Hide the progress count on the Site Health screen
*/
function mytheme_load_custom_wp_admin_style() {
$current_screen = get_current_screen();
if ( strpos( $current_screen->base, 'site-health' ) === false ) {
return;
} else {
echo '<style type="text/css">.health-check-title-section .site-health-progress {display:none;}</style>';
}
}
add_action( 'admin_print_styles', 'mytheme_load_custom_wp_admin_style' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment