Last active
August 29, 2015 14:09
-
-
Save jakewhiteley/ae331a45350992176172 to your computer and use it in GitHub Desktop.
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
<?php | |
/** | |
* instructs wordpress that our column is sortable | |
* @param Array - existing columns from wordpress | |
* @return Array - column array with new attributes | |
*/ | |
function register_sortable ( $columns ) | |
{ | |
$columns['template'] = 'template'; | |
return $columns; | |
} | |
add_filter('manage_edit-page_sortable_columns', 'register_sortable'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment