Created
September 15, 2020 11:39
-
-
Save kimsible/9caf0a97f62194a53f971ad71c064b80 to your computer and use it in GitHub Desktop.
WordPress - Snippet - Remove draft preview
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
if (is_admin()) { | |
function remove_draft_preview () { | |
?> | |
<style> | |
#minor-publishing-actions { | |
padding-top: 0; | |
} | |
#save-action #save-post, #save-action .spinner { | |
margin-top: 10px; | |
} | |
#post-preview { | |
display: none; | |
} | |
</style> | |
<?php | |
} | |
add_action('admin_head', 'remove_draft_preview'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment