I'm having a lot of trouble unchecking a checkbox in the wordpress dashboard screen options.
The theme I use addes a post settings div, which is always checked on.
To avoid confusion we want this to be set for all our users to unchecked.
I've been looking for a javascript function to do just that, other resources I found simply didn't do the trick.
The code is returned as such on the site
<label for="td_post_theme_settings_metabox-hide">
<input class="hide-postbox-tog" name="td_post_theme_settings_metabox-hide"
type="checkbox" id="td_post_theme_settings_metabox-hide"
value="td_post_theme_settings_metabox" checked="checked">Post Settings</label>
I already tried this guide but that failed sadly https://wordpress.stackexchange.com/questions/20505/make-item-checked-by-default-for-all-users-in-screen-options-pane
Aucun commentaire:
Enregistrer un commentaire