Skip to content

Instantly share code, notes, and snippets.

@slackday
Last active August 30, 2021 20:38
Show Gist options
  • Save slackday/2debc181b7963f2455e6e5a5459f2d5e to your computer and use it in GitHub Desktop.
Save slackday/2debc181b7963f2455e6e5a5459f2d5e to your computer and use it in GitHub Desktop.
Hide sticky post option on WordPress 5.8
// 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