Last active
May 7, 2019 08:03
Star
You must be signed in to star a gist
Hide the progress count on the Site Health screen
This file contains 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