Last active
August 30, 2021 20:38
-
-
Save slackday/2debc181b7963f2455e6e5a5459f2d5e to your computer and use it in GitHub Desktop.
Hide sticky post option on WordPress 5.8
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
// Target the first panel__row in the scheduel part of sidebar on post type = post | |
add_action('admin_head', function () { | |
echo ' | |
<style> | |
body.wp-admin.post-type-post .interface-interface-skeleton__sidebar .components-panel__body.edit-post-post-status .edit-post-post-schedule + .components-panel__row { | |
display: none; | |
} | |
</style> | |
'; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment