Skip to content

Instantly share code, notes, and snippets.

@turtlepod
Last active December 15, 2015 23:50
Show Gist options
  • Save turtlepod/5343584 to your computer and use it in GitHub Desktop.
Save turtlepod/5343584 to your computer and use it in GitHub Desktop.
Debug: Metabox order and hidden metabox
<?php
/* data to display */
function capsule_print_data(){
global $current_user;
# Metabox Order
$meta_box_order = get_user_meta(
wp_get_current_user()->ID
,sprintf( 'meta-box-order_%s', 'post' )
,true
);
# Hidden Meta Box
$meta_box_hidden = get_user_meta(
wp_get_current_user()->ID
,sprintf( 'metaboxhidden_%s', 'post' )
,true
);
$userme = get_user_meta(wp_get_current_user()->ID, '');
ccdd( $meta_box_order, 'Metabox Order' );
ccdd( $meta_box_hidden, 'Hidden metabox' );
ccdd( $userme, 'Get users' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment