I was wondering : You are an administrator : when you re-order the layout of your meta-box, in a page, or in a post, this layout is saved with your user profil : for example you drag the category box before the publish box…
Is it possible to save this layout for other users (editors, authors..) ?
Is it possible to organize your layout for every kind of users, without logging with their account ?
Thanks for you help !
You could setup a different default layout by hooking into do_meta_boxes
, take a look here:
- How to change default position of WP meta boxes?
Or you could use the global variable $wp_meta_boxes
to do so:
- Get List of Registered Meta Boxes and Removing Them
- How to Remove Certain Screen Options and Meta Boxes from add/edit post type?
- How to set wordpress metabox position
- Dashboard Widgets API – Example – Advanced: Forcing your widget to the top
Although the last two links are about dashboard widgets, there is little to none difference in how it is done for meta boxes on edit screens. Doing it with either method would be of course setting this up programmatically. You’d still have to disable the dragging and dropping I guess.