Skip to content

Instantly share code, notes, and snippets.

@jbma
Created March 24, 2017 08:06
Show Gist options
  • Save jbma/1ce9995f22120b999ba4ddda692fa8ae to your computer and use it in GitHub Desktop.
Save jbma/1ce9995f22120b999ba4ddda692fa8ae to your computer and use it in GitHub Desktop.
<?php
add_action( 'admin_init', 'imagify_only_admin' );
function imagify_only_admin(){
if (current_user_can('administrator')){
remove_filter( 'manage_media_columns', '_imagify_manage_media_custom_column' );
remove_filter( 'manage_media_columns', '_imagify_manage_media_columns' );
remove_filter( 'attachment_fields_to_edit', '_imagify_attachment_fields_to_edit');
remove_filter( 'media_row_actions', '_imagify_add_actions_to_media_list_row');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment