Last active
May 7, 2019 08:03
-
-
Save maddisondesigns/7ed10719d2047e387b76d311ca73362d to your computer and use it in GitHub Desktop.
Hide the progress count on the Site Health screen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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