WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was wondering how Wordpress remembers the position of metaboxes: session basis, user basis, computer basis? Does it set a cookie? Is it saved in the database?

share|improve this question
up vote 5 down vote accepted

WordPress saves them in the databas in wp_usermeta as serilized array. For the dashboard all are registered in meta-box-order_dashboard if the meta-box(s) are in metaboxhidden_dashboard they will not be shown. The order will be as saved in database and if not in metaboxhidden_dashboard.

Example the dashboard:

KEY: meta-box-order_dashboard


   [normal] => dashboard_right_now,dashboard_recent_comments,dashboard_incoming_links,dashboard_plugins
   [side] => dashboard_quick_press,dashboard_recent_drafts,dashboard_primary,dashboard_secondary
   [column3] => 
   [column4] => 

There are also these meta_key(s):

  • meta-box-order_dashboard
  • metaboxhidden_dashboard
  • meta-box-order_page
  • metaboxhidden_page
  • metaboxhidden_nav-menus
  • meta-box-order_{custom_post}
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.