Skip to content

Instantly share code, notes, and snippets.

@imjjss
Created May 30, 2012 17:54
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imjjss/2837942 to your computer and use it in GitHub Desktop.
Save imjjss/2837942 to your computer and use it in GitHub Desktop.
hide gallery settings
function hide_gallery_settings()
{
echo '<style type="text/css">#gallery-settings{display:none;}</style>';
}
add_action('admin_print_styles', 'hide_gallery_settings');
// or
add_action( 'admin_head_media_upload_gallery_form', 'mfields_remove_gallery_setting_div' );
if( !function_exists( 'mfields_remove_gallery_setting_div' ) ) {
function mfields_remove_gallery_setting_div() {
print <<<EOF
<style type="text/css">
#gallery-settings *{
display:none;
}
</style>
EOF;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment