Tagged: documentation, metabox
- This topic has 3 replies, 3 voices, and was last updated 7 years, 1 month ago by
Steve.
-
AuthorPosts
-
-
December 23, 2014 at 9:32 pm #3127
OzMemberThe documentation briefly states:
Workflow tabs control the layout of the entire page, not just what’s under each tab.
I think it’s important to list out what the “core” meta boxes are so that theme developers don’t forget to add them in. Here are some of the ones I’ve found so far:
piklist('include_meta_boxes', [ 'categorydiv', 'revisionsdiv', 'slugdiv', 'postcustom', 'commentsdiv', 'commentstatusdiv', 'authordiv', 'pageparentdiv' ]);—
Also, I’d love to contribute and add a counterpart method –
exclude_meta_boxes– that adds all the metaboxes *except* those listed. I think this is important for cases when multiple plugins add metaboxes to the same page.Example) A client is using the “Post Links To” plugin which adds a custom metabox to all custom post types. The metabox ID is “page-links-to”, but I don’t know that at the time of development. By using a blacklist (‘exclude_meta_boxes’) vs a whitelist approach (‘include_meta_boxes’) I can make my theme/plugin future proof.
Alternatively, perhaps an “Others Tab” which automatically gets added if a metabox doesn’t fit in an existing tab?
Great friggin plugin by the way!
-
December 25, 2014 at 2:00 pm #3129
SteveKeymaster@labofoz– great suggestions! We will get the docs updated. Feel free to send a patch to [email protected]
Thanks again!
-
December 27, 2014 at 6:36 pm #3136
cyclissmoMemberDon’t forget the native Featured Image/post thumbnail metabox:
postimagediv -
December 29, 2014 at 1:13 pm #3142
SteveKeymasterDocumentation has been updated > Thanks for the suggestion!
-
-
AuthorPosts
- You must be logged in to reply to this topic.