Skip to content

Instantly share code, notes, and snippets.

@benbalter
Created October 18, 2011 12:43
Show Gist options
  • Save benbalter/1295326 to your computer and use it in GitHub Desktop.
Save benbalter/1295326 to your computer and use it in GitHub Desktop.
Enable SexyBookmarks metabox on resume positions
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