By default, the Status, Visibility, and Date fields in the Publish metabox are closed, and you have to click Edit to show them.
Is there a way to make these fields visible by default?
The hidden elements all have a class of hide-if-js
.
By default, the Status, Visibility, and Date fields in the Publish metabox are closed, and you have to click Edit to show them.
Is there a way to make these fields visible by default?
The hidden elements all have a class of hide-if-js
.
You must be logged in to post a comment.
This jQuery code seems to work, when added via the
admin_footer
hook.#submitdiv
= the whole Publish metabox.misc-pub-section
= each UI section (except the Publish and Save sections).hide-if-js
= the fields that are hidden by defaultThat will unhide the Status dropdown and the Date picker.
Building upon @supertrue ‘s answer, here is a full implementation.
1./ Create a .js file (for ex:
admin-post-ui-visibility.js
) containing the following:2./ Add this to your Theme’s functions.php file: