wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_ajax_meta_box_reordering › WordPress Function
Since7.2.0
Deprecatedn/a
› wp_ajax_meta_box_reordering ( No parameters )
| Defined at: |
|
| Codex: |
Handles the meta box reordering setting via Ajax.
Source
function wp_ajax_meta_box_reordering() {
check_ajax_referer( 'screen-options-nonce', 'screenoptionnonce' );
$enabled = isset( $_POST['enabled'] ) && '1' === (string) $_POST['enabled'];
update_user_option( get_current_user_id(), 'meta_box_reordering', $enabled ? 'enabled' : 'disabled' );
wp_die( 1 );
}