Created
October 28, 2020 12:00
-
-
Save n7studios/ac51e5701b5e7fa08eeca4aa4b810886 to your computer and use it in GitHub Desktop.
Media Library Organizer: Tree View: Remove List View Drag + Drop Column
This file contains hidden or 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 | |
/** | |
* Plugin Name: Media Library Organizer: Tree View: Remove List View Drag + Drop Column | |
* Plugin URI: https://wpmedialibrary.com | |
* Version: 0.0.1 | |
* Author: WP Media Library | |
* Author URI: https://wpmedialibrary.com | |
* Description: Remove Tree View's Drag and Drop Column in Media > List View | |
*/ | |
/** | |
* Remove Tree View's Drag and Drop Column in Media > List View | |
* | |
* @since 0.0.1 | |
* | |
* @param array $columns WP_List_Table Columns | |
* @return array WP_List_Table Columns | |
*/ | |
function mlo_tree_view_remove_list_view_drag_drop_column( $columns ) { | |
// Remove columns as necessary | |
unset( $columns['tree-view-move'] ); | |
// Return columns to display | |
return $columns; | |
} | |
add_filter( 'media_library_organizer_media_define_list_view_columns', 'mlo_tree_view_remove_list_view_drag_drop_column', 999 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment