choose domain order for scroll down

0

Hi !

Is there a way to force the order of the available domain in the scrool down list ? It is for the moment alphabetical but not cool, I ‘d like to order them by importance for exemple, and have a kind of priority option, and if same priority order (1,2, 3, 3, 3…:wink: then alphabetical.

Possible huh ?

  • Mason
    • DEV MAN’s Sidekick

    Hiya Aphrodite,

    I’m moving this to a feature request. I’ll ask Ulrich to comment, but it probably isn’t something that’ll be a priority in the immediate future unless many members are requesting it.

    Of course, if it’s an easy change, I’m sure Ulrich can guide ya in the right direction. ;D

    Thanks!

  • Ulrich
    • The Crimson Coder

    Hi @Aphrodite

    It is an interesting request but we will not be able to include it in a very near future.

    You can write a php script to reorder the domains list. It is saved in the sitemeta table.

    Use get_site_option( 'md_domains' ) to retrieve the domains list (it will return a php array) and update_site_option( 'md_domains', $domains' ) //were $domains is an array containing the domain names and status) to update the list with your custom order.