Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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