When you are in the dashboard, the options checked and unchecked in the “Screen Options” pane seem to me to be completely random and arbitrary and cause lots of confusion when something doesn’t show up that you need that “should” be there but isn’t. Is there some way to influence which of these options are checked, and make that stick for all users?
Leave a Reply
You must be logged in to post a comment.
Possibly already answered here : How to set default screen options?
mike23’s link gives the hint to the following function:
The
admin_init
need to be run only once, and thenuser_register
may be enabled to configure the dashboard for new users.The
meta_value
array contains all the widgets and may be customized to your needs.1) Copy this codes and paste it in your editor and save it as enable_custom_field.php. Then, create a folder named “Enable Custom Field By Default” and put that PHP file in this folder. Like this, your created with your own plugin. Just put this folder in your plugin folder and activate it in your admin page.
2) I have tried this one by creating new user in my admin page and logged in with that user. Custom fields are there in my page’s edit section. It worked like a charm.