Last active
June 23, 2022 07:40
-
-
Save braddalton/d6f66a5e59cf6b652810d71464242ef7 to your computer and use it in GitHub Desktop.
Remove WooCommerce Product Admin Header https://wpsites.net/?p=110512
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
add_action( 'admin_init', 'remove_setup_header' ); | |
function remove_setup_header() { | |
echo '<style>#wpadminbar + #wpbody { margin-top:0; }</style>'; | |
} | |
remove_action( 'in_admin_header', array( 'Automattic\WooCommerce\Internal\Admin\Loader', 'embed_page_header' ) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment