i am creating a wordpress wordpress plugin that presents a type of dashboard, filled with custom metaboxes. I could obtain the open/hide/close and drag handles working correctly howeaver these screen personalization aren't saved: after i reload the page, everything would go to default config (really, all metaboxes opened up and sorted following a add_meta_box order in code).
I added this nonce code to my admin page, but nothing changes:
<form action="" method=""> <?php wp_nonce_field('dice-roller-metaboxes-settings'); ?> <?php wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false ); ?> <?php wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false ); ?> <input type="hidden" name="action" value="save_dashboard_settings" /> </form>
Did i possibly didn't remember another thing?
tnx ahead of time and sorry for my bad british, gabriele
make sure to change $hook within the add_postbox_toggles line towards the correct value for that page you are on