Reordering themes in admin panel

I’ve been searching for a hook to change the order in which themes are displayed in the admin panel (i.e. wp-admin/themes.php) but so far haven’t been successful.

Is there an existing hook to do this, or another workaround so I can have a custom non-alphabetical ordering – i.e. have certain themes display before the rest?

1
1

The get_themes function passes the available themes to the theme list table class and is hardcoded with a call to asort the array, with no filters available anywhere along the way that i can see.

So in short, not possible at present due to an absence of hooks(at least as far as my observations go).

Relevant files:
http://core.trac.wordpress.org/browser/tags/3.2.1/wp-admin/includes/theme.php
http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/theme.php
http://core.trac.wordpress.org/browser/tags/3.2.1/wp-admin/includes/class-wp-themes-list-table.php

Leave a Comment