Last active
December 15, 2015 23:50
-
-
Save turtlepod/5343584 to your computer and use it in GitHub Desktop.
Debug: Metabox order and hidden metabox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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