Last active
July 11, 2023 14:40
-
-
Save mikeott/8cbca612abc2fc0ef00089f3535834dd to your computer and use it in GitHub Desktop.
Force the Yoast metabox to be closed by default.
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
/* Close the Yoast metabox */ | |
function shut_your_mouth_yoast() { | |
echo '<script>jQuery( document ).ready(function() { jQuery(".yoast.wpseo-metabox").addClass("closed"); });</script>'; | |
} | |
add_action( 'admin_head', 'shut_your_mouth_yoast' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment