Last active
March 8, 2022 03:17
-
-
Save KevinBatdorf/44b6cb834a082a12a6ed76719c5c84f1 to your computer and use it in GitHub Desktop.
Disable the Gutenberg Welcome Guide from showing
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 | |
add_action('admin_footer', function () { ?> | |
<script> | |
window.addEventListener('load', () => { | |
window.setTimeout(() => { | |
if (wp.data && wp.data.select('core/edit-post').isFeatureActive('welcomeGuide')) { | |
wp.data.dispatch('core/edit-post').toggleFeature('welcomeGuide'); | |
} | |
}) | |
}); | |
</script> | |
<?php | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment