Skip to content

Instantly share code, notes, and snippets.

@jakewhiteley
Last active August 29, 2015 14:09
Show Gist options
  • Save jakewhiteley/ae331a45350992176172 to your computer and use it in GitHub Desktop.
Save jakewhiteley/ae331a45350992176172 to your computer and use it in GitHub Desktop.
<?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