meta-box icon indicating copy to clipboard operation
meta-box copied to clipboard

is there anyway to include fields in Screen Option?

Open gurumark opened this issue 10 years ago • 6 comments

Is there any way to include custom metabox fields in edit Screen Option tab? For example, you have many fields and you want to give users to remove the fields that they do not need. Currently, it happens at the metabox level, not the field level.

gurumark avatar Jun 19 '15 17:06 gurumark

Do you mean add option to Screen Options to toggle fields? If so, there's no such feature for now, but that sounds interesting.

rilwis avatar Jun 20 '15 03:06 rilwis

Yes. I think it will be useful if users could turn on and off fields using Screen Options vs disabling whole block. I looked around and could not find anything in WP Codex. It could be implemented using JS.

gurumark avatar Jun 20 '15 12:06 gurumark

Couldn't you just separate your fields in different meta boxes and hide the meta boxes they don't need? I can easily see the screen options area getting cluttered with dozens of fields. Meta boxes can already be hidden so I don't think this feature is needed

funkatron82 avatar Mar 15 '16 20:03 funkatron82

The metaboxes are meant to be displaying interrelated data. If you hide the metabox, it will hide everything inside. We want users to have ability to disable what they want at the field level. The cluttering issue is not really a big deal. In addition, it will be useful to be able to select which ones go in there. Thanks for your response in any case.

gurumark avatar Mar 15 '16 20:03 gurumark

Not sure it's the job of Screen Options, since that is more for showing and hiding sections/modules instead of individual items

funkatron82 avatar Mar 15 '16 21:03 funkatron82

There are many plugins implementing enabling/disabling fields/columns in Screen options. Besides I don't think Slug or Author can be considered a section.

gurumark avatar Mar 15 '16 21:03 gurumark