Created
October 18, 2011 12:43
-
-
Save benbalter/1295326 to your computer and use it in GitHub Desktop.
Enable SexyBookmarks metabox on resume positions
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
function wpr_add_sb_metabox() { | |
if( !function_exists( 'shrsb_get_current_user_role' ) || | |
( shrsb_get_current_user_role() != "Administrator" && shrsb_get_current_user_role() != "Editor") | |
) | |
return false; | |
add_meta_box( 'hide_options_meta', __( 'Shareaholic', 'shrsb' ), '_hide_options_meta_box_content', 'wp_resume_position', 'advanced', 'high' ); | |
} | |
add_action( 'admin_init', 'wpr_add_sb_metabox' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment